rust/tests/ui/async-await/issue-70594.rs

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

9 lines
146 B
Rust
Raw Normal View History

//@ edition:2018
2020-03-31 17:41:40 -05:00
async fn fun() {
[1; ().await];
//~^ error: `await` is only allowed inside `async` functions and blocks
}
fn main() {}