1error[E0596]: cannot borrow `callback` as mutable, as it is not declared as mutable 2 --> $DIR/issue-80313-mutable-borrow-in-move-closure.rs:6:5 3 | 4LL | let callback = move || { 5 | -------- help: consider changing this to be mutable: `mut callback` 6LL | &mut my_var; 7 | ------ calling `callback` requires mutable binding due to possible mutation of `my_var` 8LL | }; 9LL | callback(); 10 | ^^^^^^^^ cannot borrow as mutable 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0596`. 15