1
Fork 0
rust/src/test/compile-fail/issue-2354.rs

19 lines
400 B
Rust
Raw Normal View History

2012-05-07 14:42:24 -07:00
// xfail-test
/*
Ideally, the error about the missing close brace in foo would be reported
near the corresponding open brace. But currently it's reported at the end.
xfailed for now (see Issue #2354)
*/
fn foo() { //~ ERROR this open brace is not closed
2012-08-06 12:34:08 -07:00
match some(x) {
2012-05-07 14:42:24 -07:00
some(y) { fail; }
none { fail; }
}
fn bar() {
let mut i = 0;
while (i < 1000) {}
}
fn main() {}