blob: 486a07d3dd1aeb32411c95b5a731e2a20bd7b2f0 [file] [log] [blame] [edit]
//@ edition:2018
// Regression test for issue #62382.
use std::future::Future;
fn get_future() -> impl Future<Output = ()> {
//~^ ERROR `()` is not a future
panic!()
}
async fn foo() {
let a; //~ ERROR type annotations needed
get_future().await;
}
fn main() {}