| 1 |
error[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 |
| |
| 4 |
11 | impl<T: Unpin> Drop for DropImpl<T> { |
| 5 |
| ^^^^^ |
| 6 |
| |
| 7 |
note: the implementor must specify the same requirement |
| 8 |
--> tests/ui/pinned_drop/conditional-drop-impl.rs:7:1 |
| 9 |
| |
| 10 |
7 | struct DropImpl<T> { |
| 11 |
| ^^^^^^^^^^^^^^^^^^ |
| 12 |
|
| 13 |
error[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 |
| |
| 16 |
16 | / pin_project! { |
| 17 |
17 | | //~^ ERROR E0367 |
| 18 |
18 | | struct PinnedDropImpl<T> { |
| 19 |
19 | | #[pin] |
| 20 |
... | |
| 21 |
26 | | } |
| 22 |
| |_^ |
| 23 |
| |
| 24 |
note: the implementor must specify the same requirement |
| 25 |
--> tests/ui/pinned_drop/conditional-drop-impl.rs:16:1 |
| 26 |
| |
| 27 |
16 | / pin_project! { |
| 28 |
17 | | //~^ ERROR E0367 |
| 29 |
18 | | struct PinnedDropImpl<T> { |
| 30 |
19 | | #[pin] |
| 31 |
... | |
| 32 |
26 | | } |
| 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) |