2017-11-20 06:13:27 -06:00
|
|
|
error[E0384]: cannot assign twice to immutable variable `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/command-line-diagnostics.rs:6:5
|
2017-11-20 06:13:27 -06:00
|
|
|
|
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | let x = 42;
|
2019-04-22 02:40:08 -05:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| first assignment to `x`
|
2021-04-12 17:29:09 -05:00
|
|
|
| help: consider making this binding mutable: `mut x`
|
2018-02-24 17:59:34 -06:00
|
|
|
LL | x = 43;
|
2017-11-20 06:13:27 -06:00
|
|
|
| ^^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0384`.
|