blob: b287edf2fda951298bcf073e3e4ce9b05603ffdc [file]
error[E0384]: cannot assign twice to immutable variable `v`
--> $DIR/liveness-assign-imm-local-in-op-eq.rs:10:5
|
LL | v = 2;
| ----- first assignment to `v`
LL |
LL | v += 1;
| ^^^^^^ cannot assign twice to immutable variable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0384`.