1 error[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
5 | ------ calling `callback` requires mutable binding due to possible mutation of `my_var`
8 | ^^^^^^^^ cannot borrow as mutable
10 help: consider changing this to be mutable
12 LL | let mut callback = move || {
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0596`.