• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: `PhantomPinned` cannot be unpinned
2  --> $DIR/add-pinned-field.rs:21:5
3   |
44  | fn is_unpin<T: Unpin>() {}
5   |                ----- required by this bound in `is_unpin`
6...
721 |     is_unpin::<Foo>(); //~ ERROR E0277
8   |     ^^^^^^^^^^^^^^^ within `__Foo<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`
9   |
10   = note: required because it appears within the type `__Foo<'_>`
11   = note: required because of the requirements on the impl of `Unpin` for `Foo`
12
13error[E0277]: `PhantomPinned` cannot be unpinned
14  --> $DIR/add-pinned-field.rs:22:5
15   |
164  | fn is_unpin<T: Unpin>() {}
17   |                ----- required by this bound in `is_unpin`
18...
1922 |     is_unpin::<Bar>(); //~ ERROR E0277
20   |     ^^^^^^^^^^^^^^^ within `__Bar<'_>`, the trait `Unpin` is not implemented for `PhantomPinned`
21   |
22   = note: required because it appears within the type `__Bar<'_>`
23   = note: required because of the requirements on the impl of `Unpin` for `Bar`
24