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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
176 B
Rust
Raw Normal View History

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