2018-09-05 09:03:02 -05:00
|
|
|
fn foo() { //~ NOTE un-closed delimiter
|
2019-01-06 09:33:05 -06:00
|
|
|
match Some(10) {
|
2018-09-05 09:33:29 -05:00
|
|
|
//~^ NOTE this delimiter might not be properly closed...
|
2016-01-31 13:39:50 -06:00
|
|
|
Some(y) => { panic!(); }
|
|
|
|
None => { panic!(); }
|
2012-05-07 16:42:24 -05:00
|
|
|
}
|
2018-09-05 09:03:02 -05:00
|
|
|
//~^ NOTE ...as it matches this but it has different indentation
|
2012-05-07 16:42:24 -05:00
|
|
|
|
|
|
|
fn bar() {
|
|
|
|
let mut i = 0;
|
|
|
|
while (i < 1000) {}
|
|
|
|
}
|
|
|
|
|
2019-10-28 19:44:20 -05:00
|
|
|
fn main() {}
|
|
|
|
//~ ERROR this file contains an un-closed delimiter
|