]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/unused/lint-unused-mut-self.stderr
Auto merge of #106989 - clubby789:is-zero-num, r=scottmcm
[rust.git] / tests / ui / lint / unused / lint-unused-mut-self.stderr
1 error: variable does not need to be mutable
2   --> $DIR/lint-unused-mut-self.rs:10:12
3    |
4 LL |     fn foo(mut self) {}
5    |            ----^^^^
6    |            |
7    |            help: remove this `mut`
8    |
9 note: the lint level is defined here
10   --> $DIR/lint-unused-mut-self.rs:6:9
11    |
12 LL | #![deny(unused_mut)]
13    |         ^^^^^^^^^^
14
15 error: variable does not need to be mutable
16   --> $DIR/lint-unused-mut-self.rs:11:12
17    |
18 LL |     fn bar(mut self: Box<Foo>) {}
19    |            ----^^^^
20    |            |
21    |            help: remove this `mut`
22
23 error: aborting due to 2 previous errors
24