summaryrefslogtreecommitdiffstats
path: root/tests/ui/generator/unresolved-ct-var-drop-tracking.rs
blob: a6589348d301eed4fab5fa461a68a89d616624df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// incremental
// edition:2021
// compile-flags: -Zdrop-tracking

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
    };
}