rust/tests/ui/coroutine/unresolved-ct-var.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
171 B
Rust
Raw Normal View History

//@ incremental
//@ edition:2021
fn main() {
let _ = async {
let s = std::array::from_fn(|_| ()).await;
//~^ ERROR `[(); _]` is not a future
};
}