summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/no-params-non-move-async-closure.rs
blob: 3b15f35c260dc81460c7421bd3d64980e3f02afc (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 parameters are not currently supported
}