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

trait Foo {
    fn bar() {
        let x = foo();
}

fn main() {
    let x = y.;
} //~ ERROR this file contains an unclosed delimiter