]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0384]: cannot assign twice to immutable variable `v` |
48663c56 | 2 | --> $DIR/liveness-assign-imm-local-in-op-eq.rs:6:5 |
b7449926 XL |
3 | | |
4 | LL | let v: isize; | |
cdc7bbd5 | 5 | | - help: consider making this binding mutable: `mut v` |
b7449926 | 6 | ... |
532ac7d7 | 7 | LL | v = 2; |
b7449926 | 8 | | ----- first assignment to `v` |
532ac7d7 | 9 | LL | v += 1; |
b7449926 XL |
10 | | ^^^^^^ cannot assign twice to immutable variable |
11 | ||
12 | error: aborting due to previous error | |
13 | ||
14 | For more information about this error, try `rustc --explain E0384`. |