2018-04-10 17:38:35 -05: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
|
2018-04-10 17:38:35 -05:00
|
|
|
|
|
|
|
|
LL | let x = 42;
|
2018-06-30 05:02:38 -05:00
|
|
|
| -
|
2018-06-14 22:49:29 -05:00
|
|
|
| |
|
2018-06-30 05:02:38 -05:00
|
|
|
| first assignment to `x`
|
2018-09-12 13:13:40 -05:00
|
|
|
| help: make this binding mutable: `mut x`
|
2018-04-10 17:38:35 -05:00
|
|
|
LL | x = 43;
|
|
|
|
| ^^^^^^ cannot assign twice to immutable variable
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0384`.
|