summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/parser-recovery-2.rs
blob: 203d8aac66c599a8df34d7585605c93c06f1aafd (plain)
1
2
3
4
5
6
7
8
9
10
11
// Test that we can recover from mismatched braces in the parser.

trait Foo {
    fn bar() {
        let x = foo();
    ) //~ ERROR mismatched closing delimiter: `)`
}

fn main() {
    let x = y.;
}