2021-03-30 01:14:44 +00:00
|
|
|
error[E0599]: no method named `poll` found for struct `Sleep` in the current scope
|
|
|
|
--> $DIR/pin-needed-to-poll.rs:42:20
|
|
|
|
|
|
|
|
|
LL | struct Sleep;
|
2022-07-01 23:47:26 +00:00
|
|
|
| ------------ method `poll` not found for this struct
|
2021-03-30 01:14:44 +00:00
|
|
|
...
|
|
|
|
LL | self.sleep.poll(cx)
|
|
|
|
| ^^^^ method not found in `Sleep`
|
2022-12-09 15:56:23 +00:00
|
|
|
--> $SRC_DIR/core/src/future/future.rs:LL:COL
|
2021-06-10 11:52:00 +00:00
|
|
|
|
|
2022-12-09 15:56:23 +00:00
|
|
|
= note: the method is available for `Pin<&mut Sleep>` here
|
2021-03-30 01:14:44 +00:00
|
|
|
|
|
|
|
|
help: consider wrapping the receiver expression with the appropriate type
|
|
|
|
|
|
|
|
|
LL | Pin::new(&mut self.sleep).poll(cx)
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++++++++++++ +
|
2021-03-30 01:14:44 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0599`.
|