rust/src/test/compile-fail/issue-2354.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

19 lines
398 B
Rust

// 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
alt some(x) {
some(y) { fail; }
none { fail; }
}
fn bar() {
let mut i = 0;
while (i < 1000) {}
}
fn main() {}