1 error[E0594]: cannot assign to `x`, as it is not declared as mutable
2 --> $DIR/unboxed-closure-immutable-capture.rs:9:13
5 | - help: consider changing this to be mutable: `mut x`
9 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
10 --> $DIR/unboxed-closure-immutable-capture.rs:10:17
13 | - help: consider changing this to be mutable: `mut x`
15 LL | move || set(&mut x);
16 | ^^^^^^ cannot borrow as mutable
18 error[E0594]: cannot assign to `x`, as it is not declared as mutable
19 --> $DIR/unboxed-closure-immutable-capture.rs:11:13
22 | - help: consider changing this to be mutable: `mut x`
27 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
28 --> $DIR/unboxed-closure-immutable-capture.rs:12:17
31 | - help: consider changing this to be mutable: `mut x`
33 LL | move || set(&mut x);
34 | ^^^^^^ cannot borrow as mutable
36 error[E0594]: cannot assign to `x`, as it is not declared as mutable
37 --> $DIR/unboxed-closure-immutable-capture.rs:13:8
40 | - help: consider changing this to be mutable: `mut x`
45 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
46 --> $DIR/unboxed-closure-immutable-capture.rs:14:12
49 | - help: consider changing this to be mutable: `mut x`
52 | ^^^^^^ cannot borrow as mutable
54 error[E0594]: cannot assign to `x`, as it is not declared as mutable
55 --> $DIR/unboxed-closure-immutable-capture.rs:15:8
58 | - help: consider changing this to be mutable: `mut x`
63 error[E0596]: cannot borrow `x` as mutable, as it is not declared as mutable
64 --> $DIR/unboxed-closure-immutable-capture.rs:16:12
67 | - help: consider changing this to be mutable: `mut x`
70 | ^^^^^^ cannot borrow as mutable
72 error: aborting due to 8 previous errors
74 Some errors have detailed explanations: E0594, E0596.
75 For more information about an error, try `rustc --explain E0594`.