error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not --> tests/ui/pinned_drop/conditional-drop-impl.rs:11:9 | 11 | impl Drop for DropImpl { | ^^^^^ | note: the implementor must specify the same requirement --> tests/ui/pinned_drop/conditional-drop-impl.rs:7:1 | 7 | struct DropImpl { | ^^^^^^^^^^^^^^^^^^ error[E0277]: `T` cannot be unpinned --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:15 | 16 | #[pin_project(PinnedDrop)] //~ ERROR E0277 | ^^^^^^^^^^ the trait `Unpin` is not implemented for `T` | = note: consider using the `pin!` macro consider using `Box::pin` if you need to access the pinned value outside of the current scope note: required for `PinnedDropImpl` to implement `PinnedDrop` --> tests/ui/pinned_drop/conditional-drop-impl.rs:23:16 | 23 | impl PinnedDrop for PinnedDropImpl { | ----- ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ | | | unsatisfied trait bound introduced here help: consider restricting type parameter `T` | 17 | struct PinnedDropImpl { | ++++++++++++++++++++