blob: 9185c5158af6476c3a410f69ed29da2bbfd02ef3 [file] [log] [blame] [edit]
//@ run-pass
// We shouldn't need to rebind a moved upvar as mut if it's already
// marked as mut
pub fn main() {
let mut x = 1;
let _thunk = Box::new(move|| { x = 2; });
//~^ WARN value assigned to `x` is never read
//~| WARN unused variable: `x`
}