rust/src/test/ui/lint/lint-unused-mut-self.stderr

25 lines
681 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: variable does not need to be mutable
2018-12-25 09:56:47 -06:00
--> $DIR/lint-unused-mut-self.rs:8:12
2018-08-08 07:28:26 -05:00
|
LL | fn foo(mut self) {} //~ ERROR: variable does not need to be mutable
| ----^^^^
| |
| help: remove this `mut`
|
note: lint level defined here
2018-12-25 09:56:47 -06:00
--> $DIR/lint-unused-mut-self.rs:4:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(unused_mut)]
| ^^^^^^^^^^
error: variable does not need to be mutable
2018-12-25 09:56:47 -06:00
--> $DIR/lint-unused-mut-self.rs:9:12
2018-08-08 07:28:26 -05:00
|
LL | fn bar(mut self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
| ----^^^^
| |
| help: remove this `mut`
error: aborting due to 2 previous errors