2016-03-26 01:36:03 +01:00
|
|
|
// compile-flags: -Z continue-parse-after-error
|
|
|
|
|
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
|
2016-02-11 14:50:19 +13:00
|
|
|
) //~ ERROR incorrect close delimiter: `)`
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|