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[E0277]: `T` cannot be unpinned 14 --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:15 15 | 1616 | #[pin_project(PinnedDrop)] //~ ERROR E0277 17 | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T` 18 | 19 = note: consider using `Box::pin` 20note: required because of the requirements on the impl of `PinnedDrop` for `PinnedDropImpl<T>` 21 --> tests/ui/pinned_drop/conditional-drop-impl.rs:23:16 22 | 2323 | impl<T: Unpin> PinnedDrop for PinnedDropImpl<T> { 24 | ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ 25help: consider restricting type parameter `T` 26 | 2717 | struct PinnedDropImpl<T: std::marker::Unpin> { 28 | ++++++++++++++++++++ 29