]> git.lizzy.rs Git - rust.git/blob - src/test/ui/command-line-diagnostics.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / command-line-diagnostics.stderr
1 error[E0384]: cannot assign twice to immutable variable `x`
2   --> $DIR/command-line-diagnostics.rs:6:5
3    |
4 LL |     let x = 42;
5    |         -
6    |         |
7    |         first assignment to `x`
8    |         help: consider making this binding mutable: `mut x`
9 LL |     x = 43;
10    |     ^^^^^^ cannot assign twice to immutable variable
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0384`.