]> git.lizzy.rs Git - rust.git/blob - src/test/ui/command-line-diagnostics.nll.stderr
Rollup merge of #51629 - topecongiro:multiple-semicolon-in-local-span, r=petrochenkov
[rust.git] / src / test / ui / command-line-diagnostics.nll.stderr
1 error[E0384]: cannot assign twice to immutable variable `x`
2   --> $DIR/command-line-diagnostics.rs:16:5
3    |
4 LL |     let x = 42;
5    |         -   -- first assignment to `x`
6    |         |
7    |         consider changing this to `mut x`
8 LL |     x = 43;
9    |     ^^^^^^ cannot assign twice to immutable variable
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0384`.