Rust: Method “poll” not found in `impl std::future::Future`
问题 I'm trying to learn async programming, but this very basic example doesn't work: use std::future::Future; fn main() { let t = async { println!("Hello, world!"); }; t.poll(); } Everything I've read from the specs says this should work, but cargo complains that method "poll" can't be found in "impl std::future::Future". What am I doing wrong? 回答1: poll has this signature: fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>; There are two problems with calling this in the