]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr
0620235371a3928126d3037102188b5002ed61b6
[rust.git] / src / test / ui / lifetimes / lifetime-errors / liveness-assign-imm-local-notes.stderr
1 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
2   --> $DIR/liveness-assign-imm-local-notes.rs:23:9
3    |
4 LL |         x = 2;
5    |         ----- first assignment to `x`
6 LL |         x = 3;      //~ ERROR (Ast) [E0384]
7    |         ^^^^^ cannot assign twice to immutable variable
8
9 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
10   --> $DIR/liveness-assign-imm-local-notes.rs:35:13
11    |
12 LL |             x = 2;
13    |             ----- first assignment to `x`
14 LL |             x = 3;      //~ ERROR (Ast) [E0384]
15    |             ^^^^^ cannot assign twice to immutable variable
16
17 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
18   --> $DIR/liveness-assign-imm-local-notes.rs:45:13
19    |
20 LL |             x = 1;      //~ ERROR (Ast) [E0384]
21    |             ^^^^^ cannot assign twice to immutable variable
22
23 error[E0384]: cannot assign twice to immutable variable `x` (Ast)
24   --> $DIR/liveness-assign-imm-local-notes.rs:48:13
25    |
26 LL |             x = 1;      //~ ERROR (Ast) [E0384]
27    |             ----- first assignment to `x`
28 ...
29 LL |             x = 2;      //~ ERROR (Ast) [E0384]
30    |             ^^^^^ cannot assign twice to immutable variable
31
32 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
33   --> $DIR/liveness-assign-imm-local-notes.rs:23:9
34    |
35 LL |     let x;
36    |         - consider changing this to `mut x`
37 ...
38 LL |         x = 2;
39    |         ----- first assignment to `x`
40 LL |         x = 3;      //~ ERROR (Ast) [E0384]
41    |         ^^^^^ cannot assign twice to immutable variable
42
43 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
44   --> $DIR/liveness-assign-imm-local-notes.rs:35:13
45    |
46 LL |         let x;
47    |             - consider changing this to `mut x`
48 ...
49 LL |             x = 2;
50    |             ----- first assignment to `x`
51 LL |             x = 3;      //~ ERROR (Ast) [E0384]
52    |             ^^^^^ cannot assign twice to immutable variable
53
54 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
55   --> $DIR/liveness-assign-imm-local-notes.rs:45:13
56    |
57 LL |     let x;
58    |         - consider changing this to `mut x`
59 ...
60 LL |             x = 1;      //~ ERROR (Ast) [E0384]
61    |             ^^^^^ cannot assign twice to immutable variable
62
63 error[E0384]: cannot assign twice to immutable variable `x` (Mir)
64   --> $DIR/liveness-assign-imm-local-notes.rs:48:13
65    |
66 LL |     let x;
67    |         - consider changing this to `mut x`
68 ...
69 LL |             x = 1;      //~ ERROR (Ast) [E0384]
70    |             ----- first assignment to `x`
71 ...
72 LL |             x = 2;      //~ ERROR (Ast) [E0384]
73    |             ^^^^^ cannot assign twice to immutable variable
74
75 error: aborting due to 8 previous errors
76
77 For more information about this error, try `rustc --explain E0384`.