]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/issues/issue-62009-2.rs
Rollup merge of #107061 - compiler-errors:new-solver-new-candidates-3, r=lcnr
[rust.git] / tests / 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 }