1error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not 2 --> tests/ui/pinned_drop/conditional-drop-impl.rs:11:9 3 | 411 | impl<T: Unpin> Drop for DropImpl<T> { 5 | ^^^^^ 6 | 7note: the implementor must specify the same requirement 8 --> tests/ui/pinned_drop/conditional-drop-impl.rs:7:1 9 | 107 | struct DropImpl<T> { 11 | ^^^^^^^^^^^^^^^^^^ 12 13error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not 14 --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:1 15 | 1616 | / pin_project! { 1717 | | //~^ ERROR E0367 1818 | | struct PinnedDropImpl<T> { 1919 | | #[pin] 20... | 2126 | | } 22 | |_^ 23 | 24note: the implementor must specify the same requirement 25 --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:1 26 | 2716 | / pin_project! { 2817 | | //~^ ERROR E0367 2918 | | struct PinnedDropImpl<T> { 3019 | | #[pin] 31... | 3226 | | } 33 | |_^ 34 = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) 35