1
Fork 0
This commit is contained in:
Lukas Markeffsky 2023-02-19 21:15:49 +01:00
parent 14c54b637b
commit a435b3c0cd
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,5 @@
fn foo() {}
fn main() {
foo(;
foo(;
} //~ ERROR mismatched closing delimiter

View file

@ -0,0 +1,13 @@
error: mismatched closing delimiter: `}`
--> $DIR/issue-108242-semicolon-recovery.rs:4:8
|
LL | fn main() {
| - closing delimiter possibly meant for this
LL | foo(;
LL | foo(;
| ^ unclosed delimiter
LL | }
| ^ mismatched closing delimiter
error: aborting due to previous error