about summary refs log tree commit diff
path: root/src/test/ui/async-await/no-args-non-move-async-closure.rs
blob: 0ca50807f2626b3047bc230c46fc39f0cd747c84 (plain)
1
2
3
4
5
6
7
8
// edition:2018

#![feature(async_closure)]

fn main() {
    let _ = async |x: u8| {};
    //~^ ERROR `async` non-`move` closures with arguments are not currently supported
}