]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/diagnostics/cant-mutate-imm.stderr
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / closures / 2229_closure_analysis / diagnostics / cant-mutate-imm.stderr
1 error[E0594]: cannot assign to `z.0.0.0`, as it is not declared as mutable
2   --> $DIR/cant-mutate-imm.rs:12:9
3    |
4 LL |     let z = (y, 10);
5    |         - help: consider changing this to be mutable: `mut z`
6 ...
7 LL |         z.0.0.0 = 20;
8    |         ^^^^^^^^^^^^ cannot assign
9
10 error[E0594]: cannot assign to `*bx.0`, as it is not declared as mutable
11   --> $DIR/cant-mutate-imm.rs:24:9
12    |
13 LL |     let bx = Box::new(x);
14    |         -- help: consider changing this to be mutable: `mut bx`
15 ...
16 LL |         bx.0 = 20;
17    |         ^^^^^^^^^ cannot assign
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0594`.