summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/unresolved-ct-var.rs
blob: 0a1570fc2395ec43658061c387aa6a97a49da787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// incremental
// edition:2021

fn main() {
    let _ = async {
        let s = std::array::from_fn(|_| ()).await;
        //~^ ERROR `[(); _]` is not a future
        //~| ERROR type inside `async` block must be known in this context
        //~| ERROR type inside `async` block must be known in this context
        //~| ERROR type inside `async` block must be known in this context
        //~| ERROR type inside `async` block must be known in this context
        //~| ERROR type inside `async` block must be known in this context
    };
}