]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/should_impl_trait/method_list_2.stderr
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / tests / ui / should_impl_trait / method_list_2.stderr
1 error: method `eq` can be confused for the standard trait method `std::cmp::PartialEq::eq`
2   --> $DIR/method_list_2.rs:26:5
3    |
4 LL | /     pub fn eq(&self, other: &Self) -> bool {
5 LL | |         unimplemented!()
6 LL | |     }
7    | |_____^
8    |
9    = note: `-D clippy::should-implement-trait` implied by `-D warnings`
10    = help: consider implementing the trait `std::cmp::PartialEq` or choosing a less ambiguous method name
11
12 error: method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`
13   --> $DIR/method_list_2.rs:30:5
14    |
15 LL | /     pub fn from_iter<T>(iter: T) -> Self {
16 LL | |         unimplemented!()
17 LL | |     }
18    | |_____^
19    |
20    = help: consider implementing the trait `std::iter::FromIterator` or choosing a less ambiguous method name
21
22 error: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str`
23   --> $DIR/method_list_2.rs:34:5
24    |
25 LL | /     pub fn from_str(s: &str) -> Result<Self, Self> {
26 LL | |         unimplemented!()
27 LL | |     }
28    | |_____^
29    |
30    = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name
31
32 error: method `hash` can be confused for the standard trait method `std::hash::Hash::hash`
33   --> $DIR/method_list_2.rs:38:5
34    |
35 LL | /     pub fn hash(&self, state: &mut T) {
36 LL | |         unimplemented!()
37 LL | |     }
38    | |_____^
39    |
40    = help: consider implementing the trait `std::hash::Hash` or choosing a less ambiguous method name
41
42 error: method `index` can be confused for the standard trait method `std::ops::Index::index`
43   --> $DIR/method_list_2.rs:42:5
44    |
45 LL | /     pub fn index(&self, index: usize) -> &Self {
46 LL | |         unimplemented!()
47 LL | |     }
48    | |_____^
49    |
50    = help: consider implementing the trait `std::ops::Index` or choosing a less ambiguous method name
51
52 error: method `index_mut` can be confused for the standard trait method `std::ops::IndexMut::index_mut`
53   --> $DIR/method_list_2.rs:46:5
54    |
55 LL | /     pub fn index_mut(&mut self, index: usize) -> &mut Self {
56 LL | |         unimplemented!()
57 LL | |     }
58    | |_____^
59    |
60    = help: consider implementing the trait `std::ops::IndexMut` or choosing a less ambiguous method name
61
62 error: method `into_iter` can be confused for the standard trait method `std::iter::IntoIterator::into_iter`
63   --> $DIR/method_list_2.rs:50:5
64    |
65 LL | /     pub fn into_iter(self) -> Self {
66 LL | |         unimplemented!()
67 LL | |     }
68    | |_____^
69    |
70    = help: consider implementing the trait `std::iter::IntoIterator` or choosing a less ambiguous method name
71
72 error: method `mul` can be confused for the standard trait method `std::ops::Mul::mul`
73   --> $DIR/method_list_2.rs:54:5
74    |
75 LL | /     pub fn mul(self, rhs: Self) -> Self {
76 LL | |         unimplemented!()
77 LL | |     }
78    | |_____^
79    |
80    = help: consider implementing the trait `std::ops::Mul` or choosing a less ambiguous method name
81
82 error: method `neg` can be confused for the standard trait method `std::ops::Neg::neg`
83   --> $DIR/method_list_2.rs:58:5
84    |
85 LL | /     pub fn neg(self) -> Self {
86 LL | |         unimplemented!()
87 LL | |     }
88    | |_____^
89    |
90    = help: consider implementing the trait `std::ops::Neg` or choosing a less ambiguous method name
91
92 error: method `next` can be confused for the standard trait method `std::iter::Iterator::next`
93   --> $DIR/method_list_2.rs:62:5
94    |
95 LL | /     pub fn next(&mut self) -> Option<Self> {
96 LL | |         unimplemented!()
97 LL | |     }
98    | |_____^
99    |
100    = help: consider implementing the trait `std::iter::Iterator` or choosing a less ambiguous method name
101
102 error: method `not` can be confused for the standard trait method `std::ops::Not::not`
103   --> $DIR/method_list_2.rs:66:5
104    |
105 LL | /     pub fn not(self) -> Self {
106 LL | |         unimplemented!()
107 LL | |     }
108    | |_____^
109    |
110    = help: consider implementing the trait `std::ops::Not` or choosing a less ambiguous method name
111
112 error: method `rem` can be confused for the standard trait method `std::ops::Rem::rem`
113   --> $DIR/method_list_2.rs:70:5
114    |
115 LL | /     pub fn rem(self, rhs: Self) -> Self {
116 LL | |         unimplemented!()
117 LL | |     }
118    | |_____^
119    |
120    = help: consider implementing the trait `std::ops::Rem` or choosing a less ambiguous method name
121
122 error: method `shl` can be confused for the standard trait method `std::ops::Shl::shl`
123   --> $DIR/method_list_2.rs:74:5
124    |
125 LL | /     pub fn shl(self, rhs: Self) -> Self {
126 LL | |         unimplemented!()
127 LL | |     }
128    | |_____^
129    |
130    = help: consider implementing the trait `std::ops::Shl` or choosing a less ambiguous method name
131
132 error: method `shr` can be confused for the standard trait method `std::ops::Shr::shr`
133   --> $DIR/method_list_2.rs:78:5
134    |
135 LL | /     pub fn shr(self, rhs: Self) -> Self {
136 LL | |         unimplemented!()
137 LL | |     }
138    | |_____^
139    |
140    = help: consider implementing the trait `std::ops::Shr` or choosing a less ambiguous method name
141
142 error: method `sub` can be confused for the standard trait method `std::ops::Sub::sub`
143   --> $DIR/method_list_2.rs:82:5
144    |
145 LL | /     pub fn sub(self, rhs: Self) -> Self {
146 LL | |         unimplemented!()
147 LL | |     }
148    | |_____^
149    |
150    = help: consider implementing the trait `std::ops::Sub` or choosing a less ambiguous method name
151
152 error: aborting due to 15 previous errors
153