Unclear error message on trailing semicolon in assignment block #44173
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider this case
this results in the type checking error.
when the actual error is the trailing semicolon in
"bar";
This is similar to #30497 but that handles the case of a function type signature not an assignment.
@Manishearth mentioned it might be easiest to introduce a lint. Looking for mentorship on contributing a fix.
The text was updated successfully, but these errors were encountered: