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`
9 --> $SRC_DIR/core/src/future/future.rs:LL:COL
11 = note: the method is available for `Pin<&mut Sleep>` here
13 help: consider wrapping the receiver expression with the appropriate type
15 LL | Pin::new(&mut self.sleep).poll(cx)
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0599`.