]> git.lizzy.rs Git - rust.git/blob - tests/ui/command-line-diagnostics.stderr
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / 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`.