Skip to content

Commit 1460ea4

Browse files
committed
Add xfailed test case for #2354
1 parent 4f105e4 commit 1460ea4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/test/compile-fail/issue-2354.rs

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// xfail-test
2+
/*
3+
Ideally, the error about the missing close brace in foo would be reported
4+
near the corresponding open brace. But currently it's reported at the end.
5+
xfailed for now (see Issue #2354)
6+
*/
7+
fn foo() { //! ERROR this open brace is not closed
8+
alt some(x) {
9+
some(y) { fail; }
10+
none { fail; }
11+
}
12+
13+
fn bar() {
14+
let mut i = 0;
15+
while (i < 1000) {}
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)