• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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> {
116 | |     f: T,
127 | | }
13  | |_^
14
15error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not
16  --> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1
17   |
1814 | / pin_project! {
1915 | |     //~^ ERROR E0367
2016 | |     struct PinnedDropImpl<T> {
2117 | |         #[pin]
22...  |
2323 | |     }
2424 | | }
25   | |_^
26   |
27note: the implementor must specify the same requirement
28  --> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1
29   |
3014 | / pin_project! {
3115 | |     //~^ ERROR E0367
3216 | |     struct PinnedDropImpl<T> {
3317 | |         #[pin]
34...  |
3523 | |     }
3624 | | }
37   | |_^
38   = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
39