• 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 the `pin!` macro
8           consider using `Box::pin` if you need to access the pinned value outside of the current scope
9note: required because it appears within the type `Pinned`
10  --> tests/ui/rust_pinned.rs:10:12
11   |
1210 | pub struct Pinned {
13   |            ^^^^^^
14note: required by a bound in `__AssertUnpin`
15  --> tests/ui/rust_pinned.rs:6:9
16   |
176  |         type Pinned;
18   |         ^^^^^^^^^^^^ required by this bound in `__AssertUnpin`
19