1error[E0277]: `PhantomPinned` cannot be unpinned 2 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:8:28 3 | 48 | 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 12error[E0277]: `PhantomPinned` cannot be unpinned 13 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:16:28 14 | 1516 | 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 20note: required for `phantom_pinned::Wrapper<PhantomPinned>` to implement `Unpin` 21 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:12:13 22 | 2312 | 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 28error[E0277]: `PhantomPinned` cannot be unpinned 29 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:34:28 30 | 3134 | 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 36note: required because it appears within the type `Inner` 37 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:30:12 38 | 3930 | struct Inner(PhantomPinned); 40 | ^^^^^ 41 = help: see issue #48214 42 = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable 43 44error[E0277]: `PhantomPinned` cannot be unpinned 45 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:42:28 46 | 4742 | 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 52note: required because it appears within the type `Inner` 53 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:30:12 54 | 5530 | struct Inner(PhantomPinned); 56 | ^^^^^ 57note: required for `inner::Wrapper<Inner>` to implement `Unpin` 58 --> tests/ui/unstable-features/trivial_bounds-feature-gate.rs:38:13 59 | 6038 | 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 64