Debian Codegraph @

third_party/rust/pin-project/tests/ui/unstable-features/trivial_bounds-feature-gate.stderr

raw
1 error[E0277]: `PhantomPinned` cannot be unpinned
2 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:8:28
3 |
4 8 | impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
5 | ^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
6 |
7 = note: consider using the `pin!` macro
8 consider using `Box::pin` if you need to access the pinned value outside of the current scope
9 = help: see issue #48214
10 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
11
12 error[E0277]: `PhantomPinned` cannot be unpinned
13 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:16:28
14 |
15 16 | impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277
16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
17 |
18 = note: consider using the `pin!` macro
19 consider using `Box::pin` if you need to access the pinned value outside of the current scope
20 note: required for `phantom_pinned::Wrapper<PhantomPinned>` to implement `Unpin`
21 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:12:13
22 |
23 12 | impl<T> Unpin for Wrapper<T> where T: Unpin {}
24 | ^^^^^ ^^^^^^^^^^ ----- unsatisfied trait bound introduced here
25 = help: see issue #48214
26 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
27
28 error[E0277]: `PhantomPinned` cannot be unpinned
29 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:34:28
30 |
31 34 | impl Unpin for A where Inner: Unpin {} //~ ERROR E0277
32 | ^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
33 |
34 = note: consider using the `pin!` macro
35 consider using `Box::pin` if you need to access the pinned value outside of the current scope
36 note: required because it appears within the type `Inner`
37 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:30:12
38 |
39 30 | struct Inner(PhantomPinned);
40 | ^^^^^
41 = help: see issue #48214
42 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
43
44 error[E0277]: `PhantomPinned` cannot be unpinned
45 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:42:28
46 |
47 42 | impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277
48 | ^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
49 |
50 = note: consider using the `pin!` macro
51 consider using `Box::pin` if you need to access the pinned value outside of the current scope
52 note: required because it appears within the type `Inner`
53 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:30:12
54 |
55 30 | struct Inner(PhantomPinned);
56 | ^^^^^
57 note: required for `inner::Wrapper<Inner>` to implement `Unpin`
58 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:38:13
59 |
60 38 | impl<T> Unpin for Wrapper<T> where T: Unpin {}
61 | ^^^^^ ^^^^^^^^^^ ----- unsatisfied trait bound introduced here
62 = help: see issue #48214
63 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable