Closed
Description
See: https://godbolt.org/z/rPxvYMf1h
This code:
fn foo() {
match 0 {
_ => {}
}
if foo
}
}
produces
error: unexpected closing delimiter: `}`
--> <source>:7:1
|
3 | _ => {}
| -- block is empty, you might have not meant to close it
...
7 | }
| ^ unexpected closing delimiter
error: aborting due to previous error
Compiler returned: 1
on latest stable (1.61.0). @estebank
Metadata
Metadata
Assignees
Labels
Area: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the compiler team, which will review and decide on the PR/issue.