]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser-recovery-2.rs
Auto merge of #68915 - timvermeulen:non_fused_iter, r=Amanieu
[rust.git] / src / test / ui / 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 }