1 use pin_project_lite::pin_project; 2 3 pin_project! { 4 pub struct S { 5 #[pin] 6 field: u8, 7 } 8 impl PinnedDrop for S { 9 fn drop(this: Pin<&mut Self>) { 10 __drop_inner(this); 11 } 12 } 13 } 14 main()15 fn main() { 16 let _x = S { field: 0 }; 17 } 18