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:9:9 3 | 49 | 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:5:1 9 | 105 | 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:14:1 15 | 1614 | / pin_project! { 1715 | | //~^ ERROR E0367 1816 | | struct PinnedDropImpl<T> { 1917 | | #[pin] 20... | 2123 | | } 2224 | | } 23 | |_^ 24 | 25note: the implementor must specify the same requirement 26 --> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1 27 | 2814 | / pin_project! { 2915 | | //~^ ERROR E0367 3016 | | struct PinnedDropImpl<T> { 3117 | | #[pin] 32... | 3323 | | } 3424 | | } 35 | |_^ 36 = 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) 37