2017-11-27 02:07:49 -06:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x` (Ast)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:13:9
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:25:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:35:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:38:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:13:9
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2018-09-12 13:13:40 -05:00
|
|
|
| - help: make this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:25:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2018-09-12 13:13:40 -05:00
|
|
|
| - help: make this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:35:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2018-09-12 13:13:40 -05:00
|
|
|
| - help: make this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
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)
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:38:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2018-09-12 13:13:40 -05:00
|
|
|
| - help: make this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
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-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0384`.
|