]> git.proxmox.com Git - rustc.git/blob - src/test/ui/liveness/liveness-assign/liveness-assign-imm-local-with-drop.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / liveness / liveness-assign / liveness-assign-imm-local-with-drop.stderr
1 error[E0384]: cannot assign twice to immutable variable `b`
2 --> $DIR/liveness-assign-imm-local-with-drop.rs:6:5
3 |
4 LL | let b = Box::new(1);
5 | -
6 | |
7 | first assignment to `b`
8 | help: consider making this binding mutable: `mut b`
9 ...
10 LL | b = Box::new(2);
11 | ^ cannot assign twice to immutable variable
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0384`.