2016-02-11 14:50:19 +13:00
|
|
|
// Test that we can recover from mismatched braces in the parser.
|
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn bar() {
|
2023-02-28 07:55:19 +00:00
|
|
|
let x = foo();
|
2020-01-03 08:40:15 -05:00
|
|
|
) //~ ERROR mismatched closing delimiter: `)`
|
2016-02-11 14:50:19 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2023-02-28 07:55:19 +00:00
|
|
|
let x = y.;
|
2016-02-11 14:50:19 +13:00
|
|
|
}
|