]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/unused-mut-warning-captured-var.stderr
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / lint / unused / unused-mut-warning-captured-var.stderr
1 error: variable does not need to be mutable
2   --> $DIR/unused-mut-warning-captured-var.rs:6:9
3    |
4 LL |     let mut x = 1;
5    |         ----^
6    |         |
7    |         help: remove this `mut`
8    |
9 note: the lint level is defined here
10   --> $DIR/unused-mut-warning-captured-var.rs:3:11
11    |
12 LL | #![forbid(unused_mut)]
13    |           ^^^^^^^^^^
14
15 error: aborting due to previous error
16