fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
452 B15 linesraw
1error[E0384]: cannot assign twice to immutable variable `v`
2  --> $DIR/liveness-assign-imm-local-with-init.rs:6:5
3   |
4LL |     let v: isize = 1;
5   |         -
6   |         |
7   |         first assignment to `v`
8   |         help: make this binding mutable: `mut v`
9...
10LL |     v = 2;
11   |     ^^^^^ cannot assign twice to immutable variable
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0384`.