rust/src/test/ui/async-await/issue-70594.rs
Dylan MacKenzie d84f0c8d32 Update tests
2020-06-28 10:08:12 -07:00

12 lines
288 B
Rust

// edition:2018
async fn fun() {
[1; ().await];
//~^ error: `await` is only allowed inside `async` functions and blocks
//~| error: `.await` is not allowed in a `const`
//~| error: `.await` is not allowed in a `const`
//~| error: `()` is not a future
}
fn main() {}