summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/async-error-span.rs
blob: c8127df625e68d3a83524b171a5d2bd314d14a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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() {}