]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/parser-recovery-2.rs
Point (again) to more expressions with their type, even if not fully resolved
[rust.git] / src / test / ui / parser / parser-recovery-2.rs
1 // Test that we can recover from mismatched braces in the parser.
2
3 trait Foo {
4     fn bar() {
5         let x = foo(); //~ ERROR cannot find function `foo` in this scope
6     ) //~ ERROR mismatched closing delimiter: `)`
7 }
8
9 fn main() {
10     let x = y.;  //~ ERROR unexpected token
11                  //~^ ERROR cannot find value `y` in this scope
12 }