]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/no-params-non-move-async-closure.rs
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / async-await / no-params-non-move-async-closure.rs
1 // edition:2018
2
3 #![feature(async_closure)]
4
5 fn main() {
6     let _ = async |x: u8| {};
7     //~^ ERROR `async` non-`move` closures with parameters are not currently supported
8 }