Unused variables inside for
are not detected
#17999
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
compiles without a peep, even though
x
anda
are unused. Commenting out thefor
gives the expected output:The text was updated successfully, but these errors were encountered: