aboutsummaryrefslogtreecommitdiff
path: root/tests/ui/pinned_drop/conditional-drop-impl.stderr
blob: d70009c97a9f0ff9f1d63de4c0cff828a3d1c0bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not
 --> tests/ui/pinned_drop/conditional-drop-impl.rs:9:9
  |
9 | impl<T: Unpin> Drop for DropImpl<T> {
  |         ^^^^^
  |
note: the implementor must specify the same requirement
 --> tests/ui/pinned_drop/conditional-drop-impl.rs:5:1
  |
5 | / struct DropImpl<T> {
6 | |     f: T,
7 | | }
  | |_^

error[E0367]: `Drop` impl requires `T: Unpin` but the struct it is implemented for does not
  --> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1
   |
14 | / pin_project! {
15 | |     //~^ ERROR E0367
16 | |     struct PinnedDropImpl<T> {
17 | |         #[pin]
...  |
23 | |     }
24 | | }
   | |_^
   |
note: the implementor must specify the same requirement
  --> tests/ui/pinned_drop/conditional-drop-impl.rs:14:1
   |
14 | / pin_project! {
15 | |     //~^ ERROR E0367
16 | |     struct PinnedDropImpl<T> {
17 | |         #[pin]
...  |
23 | |     }
24 | | }
   | |_^
   = note: this error originates in the macro `$crate::__pin_project_make_drop_impl` (in Nightly builds, run with -Z macro-backtrace for more info)