fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: no method named `poll` found for struct `Sleep` in the current scope 2 --> $DIR/pin-needed-to-poll.rs:42:20 3 | 4LL | struct Sleep; 5 | ------------ method `poll` not found for this struct 6... 7LL | self.sleep.poll(cx) 8 | ^^^^ method not found in `Sleep` 9 | 10help: consider pinning the expression 11 | 12LL ~ let mut pinned = std::pin::pin!(self.sleep); 13LL ~ pinned.as_mut().poll(cx) 14 | 15 16error: aborting due to previous error 17 18For more information about this error, try `rustc --explain E0599`.