]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-2354.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / issue-2354.rs
1 fn foo() { //~ NOTE un-closed delimiter
2   match Some(10) {
3   //~^ NOTE this delimiter might not be properly closed...
4       Some(y) => { panic!(); }
5       None => { panic!(); }
6 }
7 //~^ NOTE ...as it matches this but it has different indentation
8
9 fn bar() {
10     let mut i = 0;
11     while (i < 1000) {}
12 }
13
14 fn main() {}
15 //~ ERROR this file contains an un-closed delimiter