We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f105e4 commit 1460ea4Copy full SHA for 1460ea4
src/test/compile-fail/issue-2354.rs
@@ -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