• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0277]: `PhantomPinned` cannot be unpinned
2  --> tests/ui/rust_pinned.rs:6:14
3   |
46  |         type Pinned;
5   |              ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
6   |
7   = note: consider using `Box::pin`
8note: required because it appears within the type `Pinned`
9  --> tests/ui/rust_pinned.rs:10:12
10   |
1110 | pub struct Pinned {
12   |            ^^^^^^
13note: required by a bound in `__AssertUnpin`
14  --> tests/ui/rust_pinned.rs:6:9
15   |
166  |         type Pinned;
17   |         ^^^^^^^^^^^^ required by this bound in `__AssertUnpin`
18