1 | // See ./unsafe_unpin-expanded.rs for generated code. |
---|---|
2 | |
3 | #![allow(dead_code)] |
4 | |
5 | use pin_project::{pin_project, UnsafeUnpin}; |
6 | |
7 | #[pin_project(UnsafeUnpin)] |
8 | pub struct Struct<T, U> { |
9 | #[pin] |
10 | pinned: T, |
11 | unpinned: U, |
12 | } |
13 | |
14 | unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {} |
15 | |
16 | fn main() {} |
17 |