summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/unclosed-braces.rs
blob: ed94fff3864380230ad7ffb1cc2ff3575f8b3801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct S {
    x: [usize; 3],
}

fn foo() {
    {
        {
            println!("hi");
        }
    }
}

fn main() {
//~^ NOTE unclosed delimiter
    {
        {
        //~^ NOTE this delimiter might not be properly closed...
            foo();
    }
    //~^ NOTE ...as it matches this but it has different indentation
}
//~ ERROR this file contains an unclosed delimiter