rust/src/test/ui/no-args-non-move-async-closure.rs
2018-12-25 21:08:33 -07:00

9 lines
226 B
Rust

// edition:2018
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]
fn main() {
let _ = async |x: u8| {};
//~^ ERROR `async` non-`move` closures with arguments are not currently supported
}