1 use pin_project::{pin_project, UnsafeUnpin}; 2 3 #[pin_project(UnsafeUnpin)] 4 struct Struct<T, U> { 5 #[pin] 6 pinned: T, 7 unpinned: U, 8 } 9 10 unsafe impl<T: Unpin, U> UnsafeUnpin for Struct<T, U> {} 11 main()12 fn main() {} 13