False positive for break_with_label_and_loop
lint & incorrect suggestion
#137414
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
L-break_with_label_and_loop
Lint: break_with_label_and_loop
L-false-positive
Lint: False positive (should not have fired).
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected
func_1
to compile without warning but it produced:func_2
is the same asfunc_1
, but it follows the compilers suggestion and produces this warning:func_3
compiles without warnings, but it adds a needless assignment.Meta
rustc --version --verbose
:The issue is also present on latest stable (1.85)
The text was updated successfully, but these errors were encountered: