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