Add xfailed test case for #2354
This commit is contained in:
parent
4f105e4025
commit
1460ea43d2
1 changed files with 18 additions and 0 deletions
18
src/test/compile-fail/issue-2354.rs
Normal file
18
src/test/compile-fail/issue-2354.rs
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
// 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue