fork/rust

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

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

1.39.0
461 B15 linesraw
1error[E0384]: cannot assign twice to immutable variable `b`
2  --> $DIR/liveness-assign-imm-local-with-drop.rs:6:5
3   |
4LL |     let b = Box::new(1);
5   |         -
6   |         |
7   |         first assignment to `b`
8   |         help: make this binding mutable: `mut b`
9...
10LL |     b = Box::new(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`.