1 error[E0594]: cannot assign to captured outer variable in an `Fn` closure
2 --> $DIR/fn-closure-mutable-capture.rs:15:17
4 LL | bar(move || x = 1);
7 = note: `Fn` closures cannot capture their enclosing environment for modifications
8 help: consider changing this closure to take self by mutable reference
9 --> $DIR/fn-closure-mutable-capture.rs:15:9
11 LL | bar(move || x = 1);
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0594`.