1 error[E0599]: no method named `poll` found for struct `Sleep` in the current scope
2 --> $DIR/pin-needed-to-poll.rs:42:20
5 | ------------ method `poll` not found for this struct
7 LL | self.sleep.poll(cx)
8 | ^^^^ method not found in `Sleep`
10 ::: $SRC_DIR/core/src/future/future.rs:LL:COL
12 LL | fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>;
13 | ---- the method is available for `Pin<&mut Sleep>` here
15 help: consider wrapping the receiver expression with the appropriate type
17 LL | Pin::new(&mut self.sleep).poll(cx)
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0599`.