2018-08-08 07:28:26 -05:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `b`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/liveness-assign-imm-local-with-drop.rs:10:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | let b = Box::new(1);
|
2018-08-08 07:28:26 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| first assignment to `b`
|
2018-09-12 13:13:40 -05:00
|
|
|
| help: make this binding mutable: `mut b`
|
2018-08-08 07:28:26 -05:00
|
|
|
...
|
2019-03-17 04:52:07 -05:00
|
|
|
LL | b = Box::new(2);
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0384`.
|