Missing warning about removing mut
qualifier?
#50321
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
NLL-fixed-by-NLL
Bugs fixed, but only when NLL is enabled.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
During work on Cargo, I found a seeming bug where the compiler doesn't warn about an unnecessary
mut
qualifier. This version does not warn:This version does warn:
The text was updated successfully, but these errors were encountered: