File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
11
11
// compile-flags: -Z parse-only
12
12
13
- fn foo( ) { //~ HELP did you mean to close this delimiter?
13
+ fn foo( ) { //~ NOTE un-closed delimiter
14
14
match Some ( x) {
15
+ //~^ NOTE this might be the culprit...
15
16
Some ( y) => { panic ! ( ) ; }
16
17
None => { panic ! ( ) ; }
17
18
}
19
+ //~^ NOTE ...as it matches this but it has different indentation
18
20
19
21
fn bar ( ) {
20
22
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