rust/tests/ui/lint/unused/lint-unused-mut-self.stderr

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

25 lines
594 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/lint-unused-mut-self.rs:10:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn foo(mut self) {}
2018-08-08 07:28:26 -05:00
| ----^^^^
| |
| 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/lint-unused-mut-self.rs:6:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(unused_mut)]
| ^^^^^^^^^^
error: variable does not need to be mutable
2020-07-02 00:32:12 -05:00
--> $DIR/lint-unused-mut-self.rs:11:12
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | fn bar(mut self: Box<Foo>) {}
2018-08-08 07:28:26 -05:00
| ----^^^^
| |
| help: remove this `mut`
error: aborting due to 2 previous errors