]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0384]: cannot assign twice to immutable variable `x` |
0731742a | 2 | --> $DIR/command-line-diagnostics.rs:6:5 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | let x = 42; |
48663c56 XL |
5 | | - |
6 | | | | |
7 | | first assignment to `x` | |
cdc7bbd5 | 8 | | help: consider making this binding mutable: `mut x` |
0531ce1d | 9 | LL | x = 43; |
ff7c6d11 XL |
10 | | ^^^^^^ cannot assign twice to immutable variable |
11 | ||
12 | error: aborting due to previous error | |
13 | ||
0531ce1d | 14 | For more information about this error, try `rustc --explain E0384`. |