rust/src/test/ui/issues-71798.rs
Nell Shamrell 5e28eb580f Adds a clearer message for when the async keyword is missing from a function
Signed-off-by: Nell Shamrell <nellshamrell@gmail.com>
2020-06-25 16:01:45 -07:00

7 lines
199 B
Rust

fn test_ref(x: &u32) -> impl std::future::Future<Output = u32> + '_ {
*x //~^ ERROR `u32` is not a future
}
fn main() {
let _ = test_ref & u; //~ ERROR cannot find value `u` in this scope
}