fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
455 B15 linesraw
1error[E0384]: cannot assign twice to immutable variable `v`
2  --> $DIR/assign-imm-local-twice.rs:7:5
3   |
4LL |     let v: isize;
5   |         - help: make this binding mutable: `mut v`
6...
7LL |     v = 1;
8   |     ----- first assignment to `v`
9LL |     println!("v={}", v);
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`.