[ER] Better error message for wrongly written break label #79424
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
This is an enhancement request. This code is wrong because it lacks a ':
It gives the error messages (rustc 1.50.0-nightly 1c389ff 2020-11-24):
But in such case I think it's better for the compiler to recognize in the error messages that the problem is probably just a lack of ' instead.
The text was updated successfully, but these errors were encountered: