1error[E0277]: `PhantomPinned` cannot be unpinned 2 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:10:28 3 | 410 | 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 10help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 11 | 125 + #![feature(trivial_bounds)] 13 | 14 15error[E0277]: `PhantomPinned` cannot be unpinned 16 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:18:28 17 | 1818 | impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277 19 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned` 20 | 21 = note: consider using the `pin!` macro 22 consider using `Box::pin` if you need to access the pinned value outside of the current scope 23note: required for `phantom_pinned::Wrapper<PhantomPinned>` to implement `Unpin` 24 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:14:13 25 | 2614 | impl<T> Unpin for Wrapper<T> where T: Unpin {} 27 | ^^^^^ ^^^^^^^^^^ ----- unsatisfied trait bound introduced here 28 = help: see issue #48214 29help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 30 | 315 + #![feature(trivial_bounds)] 32 | 33 34error[E0277]: `PhantomPinned` cannot be unpinned 35 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:36:28 36 | 3736 | impl Unpin for A where Inner: Unpin {} //~ ERROR E0277 38 | ^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned` 39 | 40 = note: consider using the `pin!` macro 41 consider using `Box::pin` if you need to access the pinned value outside of the current scope 42note: required because it appears within the type `Inner` 43 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:32:12 44 | 4532 | struct Inner(PhantomPinned); 46 | ^^^^^ 47 = help: see issue #48214 48help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 49 | 505 + #![feature(trivial_bounds)] 51 | 52 53error[E0277]: `PhantomPinned` cannot be unpinned 54 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:44:28 55 | 5644 | impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277 57 | ^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned` 58 | 59 = note: consider using the `pin!` macro 60 consider using `Box::pin` if you need to access the pinned value outside of the current scope 61note: required because it appears within the type `Inner` 62 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:32:12 63 | 6432 | struct Inner(PhantomPinned); 65 | ^^^^^ 66note: required for `inner::Wrapper<Inner>` to implement `Unpin` 67 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:40:13 68 | 6940 | impl<T> Unpin for Wrapper<T> where T: Unpin {} 70 | ^^^^^ ^^^^^^^^^^ ----- unsatisfied trait bound introduced here 71 = help: see issue #48214 72help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 73 | 745 + #![feature(trivial_bounds)] 75 | 76