]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-unused-mut-self.fixed
Rollup merge of #87180 - notriddle:notriddle/sidebar-keyboard-mobile, r=GuillaumeGomez
[rust.git] / src / test / ui / lint / lint-unused-mut-self.fixed
1 // run-rustfix
2
3 #![allow(unused_assignments)]
4 #![allow(unused_variables)]
5 #![allow(dead_code)]
6 #![deny(unused_mut)]
7
8 struct Foo;
9 impl Foo {
10     fn foo(self) {} //~ ERROR: variable does not need to be mutable
11     fn bar(self: Box<Foo>) {} //~ ERROR: variable does not need to be mutable
12 }
13
14 fn main() {}