]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/reassignment_immutable_fields_twice.stderr
implement valtrees as the type-system representation for constant values
[rust.git] / src / test / ui / borrowck / reassignment_immutable_fields_twice.stderr
1 error[E0594]: cannot assign to `x.0`, as `x` is not declared as mutable
2   --> $DIR/reassignment_immutable_fields_twice.rs:7:5
3    |
4 LL |     let x: (u32, u32);
5    |         - help: consider changing this to be mutable: `mut x`
6 LL |     x = (22, 44);
7 LL |     x.0 = 1;
8    |     ^^^^^^^ cannot assign
9
10 error[E0381]: assign to part of possibly-uninitialized variable: `x`
11   --> $DIR/reassignment_immutable_fields_twice.rs:12:5
12    |
13 LL |     x.0 = 1;
14    |     ^^^^^^^ use of possibly-uninitialized `x`
15
16 error: aborting due to 2 previous errors
17
18 Some errors have detailed explanations: E0381, E0594.
19 For more information about an error, try `rustc --explain E0381`.