2016-02-11 14:50:19 +13:00
|
|
|
// Test that we can recover from mismatched braces in the parser.
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar() {
|
2017-01-12 01:18:08 +03:00
|
|
|
let x = foo(); //~ ERROR cannot find function `foo` in this scope
|
2020-01-03 08:40:15 -05:00
|
|
|
) //~ ERROR mismatched closing delimiter: `)`
|
2016-02-11 14:50:19 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let x = y.; //~ ERROR unexpected token
|
2017-01-12 01:18:08 +03:00
|
|
|
//~^ ERROR cannot find value `y` in this scope
|
2016-02-11 14:50:19 +13:00
|
|
|
}
|