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

9 lines
176 B
Rust
Raw Normal View History

// edition:2018
2018-06-06 17:50:59 -05:00
2019-08-01 20:45:58 -05:00
#![feature(async_closure)]
2018-06-06 17:50:59 -05:00
fn main() {
let _ = async |x: u8| {};
//~^ ERROR `async` non-`move` closures with parameters are not currently supported
2018-06-06 17:50:59 -05:00
}