]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/should_impl_trait/method_list_2.rs
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / should_impl_trait / method_list_2.rs
1 // edition:2018
2
3 #![warn(clippy::all, clippy::pedantic)]
4 #![allow(
5     clippy::missing_errors_doc,
6     clippy::needless_pass_by_value,
7     clippy::must_use_candidate,
8     clippy::unused_self,
9     clippy::needless_lifetimes,
10     clippy::missing_safety_doc,
11     clippy::wrong_self_convention
12 )]
13
14 use std::ops::Mul;
15 use std::rc::{self, Rc};
16 use std::sync::{self, Arc};
17
18 fn main() {}
19 pub struct T;
20
21 impl T {
22     // *****************************************
23     // trait method list part 2, should lint all
24     // *****************************************
25
26     pub fn eq(&self, other: &Self) -> bool {
27         unimplemented!()
28     }
29
30     pub fn from_iter<T>(iter: T) -> Self {
31         unimplemented!()
32     }
33
34     pub fn from_str(s: &str) -> Result<Self, Self> {
35         unimplemented!()
36     }
37
38     pub fn hash(&self, state: &mut T) {
39         unimplemented!()
40     }
41
42     pub fn index(&self, index: usize) -> &Self {
43         unimplemented!()
44     }
45
46     pub fn index_mut(&mut self, index: usize) -> &mut Self {
47         unimplemented!()
48     }
49
50     pub fn into_iter(self) -> Self {
51         unimplemented!()
52     }
53
54     pub fn mul(self, rhs: Self) -> Self {
55         unimplemented!()
56     }
57
58     pub fn neg(self) -> Self {
59         unimplemented!()
60     }
61
62     pub fn next(&mut self) -> Option<Self> {
63         unimplemented!()
64     }
65
66     pub fn not(self) -> Self {
67         unimplemented!()
68     }
69
70     pub fn rem(self, rhs: Self) -> Self {
71         unimplemented!()
72     }
73
74     pub fn shl(self, rhs: Self) -> Self {
75         unimplemented!()
76     }
77
78     pub fn shr(self, rhs: Self) -> Self {
79         unimplemented!()
80     }
81
82     pub fn sub(self, rhs: Self) -> Self {
83         unimplemented!()
84     }
85     // **********
86     // part 2 end
87     // **********
88 }