Closed
Description
openedon Jan 2, 2018
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment