summary refs log tree commit diff
path: root/src/test/compile-fail/issue-2354.rs
blob: cf7a36224bb50236f9cf0730bf7d5cb8370ae10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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() {}