rust/tests/ui/parser/parser-recovery-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
200 B
Rust
Raw Normal View History

2016-02-10 19:50:19 -06:00
// Test that we can recover from mismatched braces in the parser.
trait Foo {
fn bar() {
let x = foo();
) //~ ERROR mismatched closing delimiter: `)`
2016-02-10 19:50:19 -06:00
}
fn main() {
let x = y.;
2016-02-10 19:50:19 -06:00
}