]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-args-non-move-async-closure.rs
Rollup merge of #60897 - seanmonstar:patch-4, r=sfackler
[rust.git] / src / test / ui / async-await / no-args-non-move-async-closure.rs
1 // edition:2018
2
3 #![feature(async_await, await_macro)]
4
5 fn main() {
6     let _ = async |x: u8| {};
7     //~^ ERROR `async` non-`move` closures with arguments are not currently supported
8 }