]> git.lizzy.rs Git - rust.git/blob - tests/ui/needless_arbitrary_self_type.fixed
Merge commit '09bd400243ed6f7059fedc0c1623aae3792521d6' into clippyup
[rust.git] / tests / ui / needless_arbitrary_self_type.fixed
1 // run-rustfix
2
3 #![warn(clippy::needless_arbitrary_self_type)]
4 #![allow(unused_mut, clippy::needless_lifetimes)]
5
6 pub enum ValType {
7     A,
8     B,
9 }
10
11 impl ValType {
12     pub fn bad(self) {
13         unimplemented!();
14     }
15
16     pub fn good(self) {
17         unimplemented!();
18     }
19
20     pub fn mut_bad(mut self) {
21         unimplemented!();
22     }
23
24     pub fn mut_good(mut self) {
25         unimplemented!();
26     }
27
28     pub fn ref_bad(&self) {
29         unimplemented!();
30     }
31
32     pub fn ref_good(&self) {
33         unimplemented!();
34     }
35
36     pub fn ref_bad_with_lifetime<'a>(&'a self) {
37         unimplemented!();
38     }
39
40     pub fn ref_good_with_lifetime<'a>(&'a self) {
41         unimplemented!();
42     }
43
44     pub fn mut_ref_bad(&mut self) {
45         unimplemented!();
46     }
47
48     pub fn mut_ref_good(&mut self) {
49         unimplemented!();
50     }
51
52     pub fn mut_ref_bad_with_lifetime<'a>(&'a mut self) {
53         unimplemented!();
54     }
55
56     pub fn mut_ref_good_with_lifetime<'a>(&'a mut self) {
57         unimplemented!();
58     }
59
60     pub fn mut_ref_mut_good(mut self: &mut Self) {
61         unimplemented!();
62     }
63
64     pub fn mut_ref_mut_ref_good(self: &&mut &mut Self) {
65         unimplemented!();
66     }
67 }
68
69 fn main() {}