blob: 8857681c0689d369dbd695032e1b6b76261284be [file] [log] [blame]
error[E0277]: `PhantomPinned` cannot be unpinned
--> $DIR/rust_pinned.rs:6:14
|
6 | type Pinned;
| ^^^^^^ within `Pinned`, the trait `Unpin` is not implemented for `PhantomPinned`
|
= note: consider using `Box::pin`
note: required because it appears within the type `Pinned`
--> $DIR/rust_pinned.rs:10:12
|
10 | pub struct Pinned {
| ^^^^^^
note: required by a bound in `__AssertUnpin`
--> $DIR/rust_pinned.rs:6:9
|
6 | type Pinned;
| ^^^^^^^^^^^^ required by this bound in `__AssertUnpin`