Using same label name in seemingly non-shadowing context generates warning #48764
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
generates the following warning:
As it is impossible to meaningfully use (as in
break 'a
) the'a
of the first loop from the second loop, the warning seems rather redundant.The text was updated successfully, but these errors were encountered: