summary refs log tree commit diff
path: root/src/test/ui/parser/issue-2354.rs
blob: c4fc471618283a0087cad9d763a623ec084dda8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn foo() { //~ NOTE un-closed delimiter
  match Some(10) {
  //~^ NOTE this delimiter might not be properly closed...
      Some(y) => { panic!(); }
      None => { panic!(); }
}
//~^ NOTE ...as it matches this but it has different indentation

fn bar() {
    let mut i = 0;
    while (i < 1000) {}
}

fn main() {}
//~ ERROR this file contains an un-closed delimiter