about summary refs log tree commit diff
path: root/tests/ui/ergonomic-clones/closure/parse.rs
blob: 0b3bfae0608ab17be071b56bf794e79e31354260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![feature(ergonomic_clones)]
#![allow(incomplete_features)]

fn parse1() {
    || use {
        //~^ ERROR expected one of `async`, `|`, or `||`, found `{`
    };
}

fn parse2() {
    move use || {
        //~^ ERROR expected one of `async`, `|`, or `||`, found keyword `use`
    };
}

fn parse3() {
    use move || {
        //~^ ERROR expected one of `async`, `|`, or `||`, found keyword `move`
    };
}

fn main() {}