rust/tests/ui/lint/unused/unused-mut-warning-captured-var.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
386 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: variable does not need to be mutable
2020-07-02 00:32:12 -05:00
--> $DIR/unused-mut-warning-captured-var.rs:6:9
2018-08-08 07:28:26 -05:00
|
LL | let mut x = 1;
| ----^
| |
| help: remove this `mut`
|
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
2020-07-02 00:32:12 -05:00
--> $DIR/unused-mut-warning-captured-var.rs:3:11
2018-08-08 07:28:26 -05:00
|
LL | #![forbid(unused_mut)]
| ^^^^^^^^^^
error: aborting due to previous error