Better error message when : appears where = is supposed to appear #57828
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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 code:
Godbolt link
The compiler complains like this:
It would be good if the compiler was able to suggest that you may want to replace
:
with=
instead of just making suggestions based on the premise that:
was right.The text was updated successfully, but these errors were encountered: