]> git.proxmox.com Git - rustc.git/blob - tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / lifetimes / lifetime-errors / liveness-assign-imm-local-notes.stderr
1 error[E0384]: cannot assign twice to immutable variable `x`
2 --> $DIR/liveness-assign-imm-local-notes.rs:10:9
3 |
4 LL | let x;
5 | - help: consider making this binding mutable: `mut x`
6 ...
7 LL | x = 2;
8 | ----- first assignment to `x`
9 LL | x = 3;
10 | ^^^^^ cannot assign twice to immutable variable
11
12 error[E0384]: cannot assign twice to immutable variable `x`
13 --> $DIR/liveness-assign-imm-local-notes.rs:21:13
14 |
15 LL | let x;
16 | - help: consider making this binding mutable: `mut x`
17 ...
18 LL | x = 2;
19 | ----- first assignment to `x`
20 LL | x = 3;
21 | ^^^^^ cannot assign twice to immutable variable
22
23 error[E0384]: cannot assign twice to immutable variable `x`
24 --> $DIR/liveness-assign-imm-local-notes.rs:30:13
25 |
26 LL | let x;
27 | - help: consider making this binding mutable: `mut x`
28 ...
29 LL | x = 1;
30 | ^^^^^ cannot assign twice to immutable variable
31
32 error[E0384]: cannot assign twice to immutable variable `x`
33 --> $DIR/liveness-assign-imm-local-notes.rs:32:13
34 |
35 LL | let x;
36 | - help: consider making this binding mutable: `mut x`
37 ...
38 LL | x = 1;
39 | ----- first assignment to `x`
40 LL | } else {
41 LL | x = 2;
42 | ^^^^^ cannot assign twice to immutable variable
43
44 error: aborting due to 4 previous errors
45
46 For more information about this error, try `rustc --explain E0384`.