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