2021-03-30 15:37:30 -05:00
|
|
|
error[E0277]: `PhantomPinned` cannot be unpinned
|
2021-10-22 15:49:12 -05:00
|
|
|
--> $DIR/pin-needed-to-poll-2.rs:43:18
|
2021-03-30 15:37:30 -05:00
|
|
|
|
|
|
|
|
LL | Pin::new(&mut self.sleep).poll(cx)
|
2021-10-22 15:49:12 -05:00
|
|
|
| -------- ^^^^^^^^^^^^^^^ within `Sleep`, the trait `Unpin` is not implemented for `PhantomPinned`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-03-30 15:37:30 -05:00
|
|
|
|
|
2021-03-30 15:51:08 -05:00
|
|
|
= note: consider using `Box::pin`
|
2021-03-30 15:37:30 -05:00
|
|
|
note: required because it appears within the type `Sleep`
|
|
|
|
--> $DIR/pin-needed-to-poll-2.rs:8:8
|
|
|
|
|
|
|
|
|
LL | struct Sleep(std::marker::PhantomPinned);
|
|
|
|
| ^^^^^
|
2021-10-05 18:04:09 -05:00
|
|
|
note: required by a bound in `Pin::<P>::new`
|
2021-07-17 13:13:50 -05:00
|
|
|
--> $SRC_DIR/core/src/pin.rs:LL:COL
|
2021-03-30 15:37:30 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|