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-01-06 09:33:05 -06:00
|
|
|
fn main() {} //~ NOTE here is a function named 'main'
|
|
|
|
//~ ERROR this file contains an un-closed delimiter
|