Skip to content

Commit b2d2d83

Browse files
committed
Fix existing test
1 parent 008aa5a commit b2d2d83

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/test/parse-fail/issue-2354.rs renamed to src/test/ui/issue-2354.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
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

1921
fn bar() {
2022
let mut i = 0;

src/test/ui/issue-2354.stderr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+

0 commit comments

Comments
 (0)