]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-62009-2.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / async-await / issues / issue-62009-2.rs
1 // edition:2018
2
3 #![feature(async_closure)]
4
5 async fn print_dur() {}
6
7 fn main() {
8     (async || 2333)().await;
9     //~^ ERROR `await` is only allowed inside `async` functions and blocks
10 }