]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/unresolved-ct-var.rs
Auto merge of #106646 - Amanieu:ilp32-object, r=Mark-Simulacrum
[rust.git] / tests / ui / generator / unresolved-ct-var.rs
1 // incremental
2 // edition:2021
3
4 fn main() {
5     let _ = async {
6         let s = std::array::from_fn(|_| ()).await;
7         //~^ ERROR `[(); _]` is not a future
8         //~| ERROR type inside `async` block must be known in this context
9         //~| ERROR type inside `async` block must be known in this context
10         //~| ERROR type inside `async` block must be known in this context
11         //~| ERROR type inside `async` block must be known in this context
12         //~| ERROR type inside `async` block must be known in this context
13     };
14 }