Capturing a mut
variable and then modifying the variable emits a dead-assignment warning
#7966
Labels
A-destructors
Area: Destructors (`Drop`, …)
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
Expected behavior: no warning because the variable is read from in the subsequent
adder(1)
call.The text was updated successfully, but these errors were encountered: