Closed
Description
With the nll feature enabled, a "variable does not need to be mutable" warning is emitted incorrectly when a variable is mutated from inside a move closure.
#![feature(nll)]
fn main() {
let mut baz = 4; // "warning: variable does not need to be mutable"
move || { baz = 6 };
}