-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f105e4
commit 1460ea4
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() {} |