blob: cb7336e6134225b8c6aa651a47f298880997a86a (
plain)
1
2
3
4
5
6
7
8
9
10
|
// edition:2018
#![feature(async_closure)]
async fn print_dur() {}
fn main() {
(async || 2333)().await;
//~^ ERROR `await` is only allowed inside `async` functions and blocks
}
|