File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1010
1111// compile-flags: -Z parse-only
1212
13- fn foo( ) { //~ HELP did you mean to close this delimiter?
13+ fn foo( ) { //~ NOTE un-closed delimiter
1414 match Some ( x) {
15+ //~^ NOTE this might be the culprit...
1516 Some ( y) => { panic ! ( ) ; }
1617 None => { panic ! ( ) ; }
1718}
19+ //~^ NOTE ...as it matches this but it has different indentation
1820
1921fn bar ( ) {
2022 let mut i = 0 ;
Original file line number Diff line number Diff line change 1+ error: this file contains an un-closed delimiter
2+ --> $DIR/issue-2354.rs:26:66
3+ |
4+ LL | fn foo() { //~ NOTE un-closed delimiter
5+ | - un-closed delimiter
6+ LL | match Some(x) {
7+ | - this might be the culprit...
8+ ...
9+ LL | }
10+ | - ...as it matches this but it has different indentation
11+ ...
12+ LL | fn main() {} //~ ERROR this file contains an un-closed delimiter
13+ | ^
14+
15+ error: aborting due to previous error
16+
You can’t perform that action at this time.
0 commit comments