]> git.lizzy.rs Git - rust.git/blob - tests/ui/generator/unresolved-ct-var-drop-tracking.rs
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / generator / unresolved-ct-var-drop-tracking.rs
1 // incremental
2 // edition:2021
3 // compile-flags: -Zdrop-tracking
4
5 fn main() {
6     let _ = async {
7         let s = std::array::from_fn(|_| ()).await;
8         //~^ ERROR `[(); _]` is not a future
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         //~| ERROR type inside `async` block must be known in this context
14     };
15 }