2019-07-04 14:20:04 -04:00
|
|
|
// edition:2018
|
|
|
|
|
2019-08-02 03:45:58 +02:00
|
|
|
// Regression test for issue #62382.
|
2019-07-04 14:20:04 -04:00
|
|
|
|
|
|
|
use std::future::Future;
|
|
|
|
|
|
|
|
fn get_future() -> impl Future<Output = ()> {
|
|
|
|
panic!()
|
|
|
|
}
|
|
|
|
|
|
|
|
async fn foo() {
|
2019-10-02 14:17:38 -04:00
|
|
|
let a; //~ ERROR type inside `async` fn body must be known in this context
|
2019-07-04 14:20:04 -04:00
|
|
|
get_future().await;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|