mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
11 lines
189 B
Rust
11 lines
189 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
|
|
}
|