fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
594 B24 linesraw
1error: variable does not need to be mutable
2  --> $DIR/lint-unused-mut-self.rs:10:12
3   |
4LL |     fn foo(mut self) {}
5   |            ----^^^^
6   |            |
7   |            help: remove this `mut`
8   |
9note: the lint level is defined here
10  --> $DIR/lint-unused-mut-self.rs:6:9
11   |
12LL | #![deny(unused_mut)]
13   |         ^^^^^^^^^^
14
15error: variable does not need to be mutable
16  --> $DIR/lint-unused-mut-self.rs:11:12
17   |
18LL |     fn bar(mut self: Box<Foo>) {}
19   |            ----^^^^
20   |            |
21   |            help: remove this `mut`
22
23error: aborting due to 2 previous errors
24