]> git.proxmox.com Git - rustc.git/blob - tests/ui/generator/unresolved-ct-var-drop-tracking.rs
New upstream version 1.73.0+dfsg1
[rustc.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 }