1
Fork 0
rust/src/test/ui/parser/issue-2354.rs

17 lines
399 B
Rust
Raw Normal View History

// compile-flags: -Z parse-only
2018-09-05 07:03:02 -07:00
fn foo() { //~ NOTE un-closed delimiter
match Some(x) {
//~^ NOTE this delimiter might not be properly closed...
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) {}
}
fn main() {} //~ ERROR this file contains an un-closed delimiter