2012-05-07 16:42:24 -05: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)
|
|
|
|
*/
|
2012-06-30 06:23:59 -05:00
|
|
|
fn foo() { //~ ERROR this open brace is not closed
|
2012-05-07 16:42:24 -05:00
|
|
|
alt some(x) {
|
|
|
|
some(y) { fail; }
|
|
|
|
none { fail; }
|
|
|
|
}
|
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
let mut i = 0;
|
|
|
|
while (i < 1000) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|