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

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

11 lines
198 B
Rust
Raw Normal View History

2016-02-11 01:50:19 +00:00
// Test that we can recover from missing braces in the parser.
trait Foo {
fn bar() {
2018-08-27 00:22:36 +00:00
let x = foo();
2016-02-11 01:50:19 +00:00
}
fn main() {
2018-08-27 00:22:36 +00:00
let x = y.;
} //~ ERROR this file contains an unclosed delimiter