We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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