Confusing suggestion on incorrect closing }
#70583
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: Some more or less helpful message about the imbalanced braces.
Instead, this happened: I got a rather confusing suggestion:
The empty block it points to is not even in the same function, so this suggestion is more confusing than helpful.
This issue has been assigned to @kper via this comment.
The text was updated successfully, but these errors were encountered: