]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error: variable does not need to be mutable |
f035d41b | 2 | --> $DIR/unused-mut-warning-captured-var.rs:6:9 |
b7449926 XL |
3 | | |
4 | LL | let mut x = 1; | |
5 | | ----^ | |
6 | | | | |
7 | | help: remove this `mut` | |
8 | | | |
74b04a01 | 9 | note: the lint level is defined here |
f035d41b | 10 | --> $DIR/unused-mut-warning-captured-var.rs:3:11 |
b7449926 XL |
11 | | |
12 | LL | #![forbid(unused_mut)] | |
13 | | ^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to previous error | |
16 |