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