2019-05-02 17:34:15 -05:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x`
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:10:9
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2021-04-12 17:29:09 -05:00
|
|
|
| - help: consider making 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`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 3;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
2019-05-02 17:34:15 -05:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x`
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:21:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2021-04-12 17:29:09 -05:00
|
|
|
| - help: consider making 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`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 3;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
2019-05-02 17:34:15 -05:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x`
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:30:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2021-04-12 17:29:09 -05:00
|
|
|
| - help: consider making this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 1;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
2019-05-02 17:34:15 -05:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x`
|
|
|
|
--> $DIR/liveness-assign-imm-local-notes.rs:32:13
|
2017-11-27 02:07:49 -06:00
|
|
|
|
|
2018-06-14 22:49:29 -05:00
|
|
|
LL | let x;
|
2021-04-12 17:29:09 -05:00
|
|
|
| - help: consider making this binding mutable: `mut x`
|
2018-06-14 22:49:29 -05:00
|
|
|
...
|
2021-01-01 12:38:11 -06:00
|
|
|
LL | x = 1;
|
|
|
|
| ----- first assignment to `x`
|
|
|
|
LL | } else {
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x = 2;
|
2017-11-27 02:07:49 -06:00
|
|
|
| ^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
2019-05-02 17:34:15 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2017-11-27 02:07:49 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0384`.
|