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