rust/tests/ui/async-await/async-error-span.rs
Camille GILLOT 211d2ed07b Bless tests.
2023-09-23 13:47:30 +00:00

18 lines
277 B
Rust

// 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() {}