2015-02-09 20:01:45 +01:00
|
|
|
// compile-flags: -Z parse-only
|
|
|
|
|
2018-09-05 07:03:02 -07:00
|
|
|
fn foo() { //~ NOTE un-closed delimiter
|
2013-01-25 12:31:45 -07:00
|
|
|
match Some(x) {
|
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) {}
|
|
|
|
}
|
|
|
|
|
2014-02-06 10:38:08 +01:00
|
|
|
fn main() {} //~ ERROR this file contains an un-closed delimiter
|