We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Minimal example of the lint failure to fire:
fn foo() -> bool { let mut res = false; let mut do_thing = move || res = true; do_thing(); res }
foo unconditionally returns false, but the top-level binding of res doesn't get an unused_mut warning.
foo
res
unused_mut