rust/tests/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.5 KiB
Plaintext
Raw Normal View History

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
|
LL | let x;
| - help: consider making this binding mutable: `mut x`
...
2018-02-23 03:42:32 +03:00
LL | x = 2;
| ----- first assignment to `x`
2019-03-09 15:03:44 +03:00
LL | x = 3;
| ^^^^^ 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
|
LL | let x;
| - help: consider making this binding mutable: `mut x`
...
2018-02-23 03:42:32 +03:00
LL | x = 2;
| ----- first assignment to `x`
2019-03-09 15:03:44 +03:00
LL | x = 3;
| ^^^^^ 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
|
LL | let x;
| - help: consider making this binding mutable: `mut x`
...
2019-03-09 15:03:44 +03:00
LL | x = 1;
| ^^^^^ 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
|
LL | let x;
| - help: consider making this binding mutable: `mut x`
...
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;
| ^^^^^ cannot assign twice to immutable variable
2019-05-02 18:34:15 -04:00
error: aborting due to 4 previous errors
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0384`.