mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
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
|
|
}
|