2017-11-27 02:07:49 -06:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Ast)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:23:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 3; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Ast)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:35:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 3; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Ast)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:45:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 1; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Ast)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:48:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 1; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Mir)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:23:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 3; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Mir)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:35:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 3; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Mir)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:45:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 1; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Mir)
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:48:13
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 1; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ----- first assignment to `x`
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | x = 2; //~ ERROR (Ast) [E0384]
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0384"
|