Debian Codegraph @

third_party/rust/pin-project-lite/tests/ui/pinned_drop/conditional-drop-impl.stderr

raw
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 25 | | }
22 26 | | }
23 | |_^
24 |
25 note: the implementor must specify the same requirement
26 --> tests/ui/pinned_drop/conditional-drop-impl.rs:16:1
27 |
28 16 | / pin_project! {
29 17 | | //~^ ERROR E0367
30 18 | | struct PinnedDropImpl<T> {
31 19 | | #[pin]
32 ... |
33 25 | | }
34 26 | | }
35 | |_^
36 = 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)