1 error[E0594]: cannot assign to `x`, as it is a captured variable in a `Fn` closure
2 --> $DIR/fn-closure-mutable-capture.rs:15:17
4 LL | bar(move || x = 1);
7 help: consider changing this to accept closures that implement `FnMut`
8 --> $DIR/fn-closure-mutable-capture.rs:15:9
10 LL | bar(move || x = 1);
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0594`.