rust/tests/ui/async-await/no-params-non-move-async-closure.rs

9 lines
103 B
Rust

// edition:2018
// check-pass
#![feature(async_closure)]
fn main() {
let _ = async |x: u8| {};
}