2018-08-08 12:28:26 +00:00
|
|
|
error: variable does not need to be mutable
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/lint-unused-mut-self.rs:10:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn foo(mut self) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ----^^^^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/lint-unused-mut-self.rs:6:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused_mut)]
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: variable does not need to be mutable
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/lint-unused-mut-self.rs:11:12
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | fn bar(mut self: Box<Foo>) {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ----^^^^
|
|
|
|
| |
|
|
|
|
| help: remove this `mut`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|