]> git.lizzy.rs Git - rust.git/blob - tests/ui/should_impl_trait/method_list_1.rs
69a3390b03b0b2cac0988e1f35dc1796e0bcd41d
[rust.git] / tests / ui / should_impl_trait / method_list_1.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     clippy::missing_panics_doc
13 )]
14
15 use std::ops::Mul;
16 use std::rc::{self, Rc};
17 use std::sync::{self, Arc};
18
19 fn main() {}
20 pub struct T;
21
22 impl T {
23     // *****************************************
24     // trait method list part 1, should lint all
25     // *****************************************
26     pub fn add(self, other: T) -> T {
27         unimplemented!()
28     }
29
30     pub fn as_mut(&mut self) -> &mut T {
31         unimplemented!()
32     }
33
34     pub fn as_ref(&self) -> &T {
35         unimplemented!()
36     }
37
38     pub fn bitand(self, rhs: T) -> T {
39         unimplemented!()
40     }
41
42     pub fn bitor(self, rhs: Self) -> Self {
43         unimplemented!()
44     }
45
46     pub fn bitxor(self, rhs: Self) -> Self {
47         unimplemented!()
48     }
49
50     pub fn borrow(&self) -> &str {
51         unimplemented!()
52     }
53
54     pub fn borrow_mut(&mut self) -> &mut str {
55         unimplemented!()
56     }
57
58     pub fn clone(&self) -> Self {
59         unimplemented!()
60     }
61
62     pub fn cmp(&self, other: &Self) -> Self {
63         unimplemented!()
64     }
65
66     pub fn default() -> Self {
67         unimplemented!()
68     }
69
70     pub fn deref(&self) -> &Self {
71         unimplemented!()
72     }
73
74     pub fn deref_mut(&mut self) -> &mut Self {
75         unimplemented!()
76     }
77
78     pub fn div(self, rhs: Self) -> Self {
79         unimplemented!()
80     }
81
82     pub fn drop(&mut self) {
83         unimplemented!()
84     }
85     // **********
86     // part 1 end
87     // **********
88 }