Do not emit "incorrect close delimiter" twice in the same place
This commit is contained in:
parent
2a74d7924a
commit
1b5e29ae6f
4 changed files with 20 additions and 22 deletions
|
|
@ -15,4 +15,3 @@ fn main() {
|
|||
//~^ ERROR: expected expression, found `;`
|
||||
}
|
||||
//~^ ERROR: incorrect close delimiter: `}`
|
||||
//~| ERROR: incorrect close delimiter: `}`
|
||||
|
|
|
|||
|
|
@ -7,20 +7,11 @@ LL | //~^ ERROR: expected expression, found `;`
|
|||
LL | }
|
||||
| ^ incorrect close delimiter
|
||||
|
||||
error: incorrect close delimiter: `}`
|
||||
--> $DIR/token-error-correct.rs:16:1
|
||||
|
|
||||
LL | foo(bar(;
|
||||
| - unclosed delimiter
|
||||
LL | //~^ ERROR: expected expression, found `;`
|
||||
LL | }
|
||||
| ^ incorrect close delimiter
|
||||
|
||||
error: expected expression, found `;`
|
||||
--> $DIR/token-error-correct.rs:14:13
|
||||
|
|
||||
LL | foo(bar(;
|
||||
| ^ expected expression
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue