• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // SPDX-License-Identifier: Apache-2.0 OR MIT
2 
3 // See ./not_unpin-expanded.rs for generated code.
4 
5 #![allow(dead_code)]
6 
7 use pin_project::pin_project;
8 
9 #[pin_project(!Unpin)]
10 struct Struct<T, U> {
11     #[pin]
12     pinned: T,
13     unpinned: U,
14 }
15 
main()16 fn main() {
17     fn _is_unpin<T: Unpin>() {}
18     // _is_unpin::<Struct<(), ()>>(); //~ ERROR `std::marker::PhantomPinned` cannot be unpinned
19 }
20