mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
15 lines
544 B
Rust
15 lines
544 B
Rust
// incremental
|
|
// edition:2021
|
|
|
|
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
|
|
};
|
|
}
|