summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-67377-invalid-syntax-in-enum-discriminant.rs
blob: e712160fcf84de00cf32dc3dbcd69d930f77d916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
mod a {
    use std::marker::PhantomData;

    enum Bug {
        V = [PhantomData; { [ () ].len() ].len() as isize,
        //~^ ERROR mismatched closing delimiter: `]`
    }
}

mod b {
    enum Bug {
        V = [Vec::new; { [].len()  ].len() as isize,
        //~^ ERROR mismatched closing delimiter: `]`
    }
}

mod c {
    enum Bug {
        V = [Vec::new; { [0].len() ].len() as isize,
        //~^ ERROR mismatched closing delimiter: `]`
}

fn main() {} //~ ERROR this file contains an unclosed delimiter