rust/tests/ui/parser/issues/issue-2354.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
365 B
Rust
Raw Normal View History

fn foo() { //~ NOTE unclosed delimiter
match Some(10) {
//~^ NOTE this delimiter might not be properly closed...
Some(y) => { panic!(); }
None => { panic!(); }
2012-05-07 21:42:24 +00:00
}
2018-09-05 14:03:02 +00:00
//~^ NOTE ...as it matches this but it has different indentation
2012-05-07 21:42:24 +00:00
fn bar() {
let mut i = 0;
while (i < 1000) {}
}
fn main() {}
//~ ERROR this file contains an unclosed delimiter