rust/tests/ui/generator/unresolved-ct-var-drop-tracking.rs
2023-01-11 09:32:08 +00:00

16 lines
578 B
Rust

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