Labeled break outside of breakable frames says break cannot be used outside of a loop #103981
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
Will output the following diagnostics:
With
break
now supported in conjunction with non-loop constructs, we should adjust this diagnostic accordingly. The wording here might be tricky, because something likewould go stale as soon as we add another thing/place you can break out of, and the wording in general reads awkward regardless...
The text was updated successfully, but these errors were encountered: