about summary refs log tree commit diff
path: root/src/test/ui/async-await/async-error-span.rs
blob: dec3ac0f685547b5d66877babf9c4d3de1d1fade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// edition:2018

// Regression test for issue #62382.

use std::future::Future;

fn get_future() -> impl Future<Output = ()> {
    panic!()
}

async fn foo() {
    let a; //~ ERROR type inside `async` object must be known in this context
    get_future().await;
}

fn main() {}