• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: `PhantomPinned` cannot be unpinned
2 --> $DIR/trivial_bounds-feature-gate.rs:8:5
3  |
48 |     impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
5  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
6  |
7  = help: see issue #48214
8  = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
9
10error[E0277]: `PhantomPinned` cannot be unpinned
11   --> $DIR/trivial_bounds-feature-gate.rs:8:43
12    |
138   |     impl Unpin for A where PhantomPinned: Unpin {} //~ ERROR E0277
14    |                                           ^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
15
16error[E0277]: `PhantomPinned` cannot be unpinned
17  --> $DIR/trivial_bounds-feature-gate.rs:16:5
18   |
1916 |     impl Unpin for B where Wrapper<PhantomPinned>: Unpin {} //~ ERROR E0277
20   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `PhantomPinned`
21   |
22   = note: required because of the requirements on the impl of `Unpin` for `phantom_pinned::Wrapper<PhantomPinned>`
23   = help: see issue #48214
24   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
25
26error[E0277]: `PhantomPinned` cannot be unpinned
27  --> $DIR/trivial_bounds-feature-gate.rs:34:5
28   |
2934 |     impl Unpin for A where Inner: Unpin {} //~ ERROR E0277
30   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
31   |
32   = note: required because it appears within the type `Inner`
33   = help: see issue #48214
34   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
35
36error[E0277]: `PhantomPinned` cannot be unpinned
37  --> $DIR/trivial_bounds-feature-gate.rs:42:5
38   |
3942 |     impl Unpin for B where Wrapper<Inner>: Unpin {} //~ ERROR E0277
40   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `Inner`, the trait `Unpin` is not implemented for `PhantomPinned`
41   |
42   = note: required because it appears within the type `Inner`
43   = note: required because of the requirements on the impl of `Unpin` for `inner::Wrapper<Inner>`
44   = help: see issue #48214
45   = help: add `#![feature(trivial_bounds)]` to the crate attributes to enable
46