11 lines
188 B
Rust
11 lines
188 B
Rust
// edition:2018
|
|
|
|
#![feature(async_closure)]
|
|
|
|
async fn print_dur() {}
|
|
|
|
fn main() {
|
|
(async || 2333)().await;
|
|
//~^ ERROR `await` is only allowed inside `async` functions and blocks
|
|
}
|