summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/should_impl_trait/method_list_2.stderr
blob: b6fd435695698e6ca47adee8a423824472e6b14d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
error: method `eq` can be confused for the standard trait method `std::cmp::PartialEq::eq`
  --> $DIR/method_list_2.rs:26:5
   |
LL | /     pub fn eq(&self, other: &Self) -> bool {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = note: `-D clippy::should-implement-trait` implied by `-D warnings`
   = help: consider implementing the trait `std::cmp::PartialEq` or choosing a less ambiguous method name

error: method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`
  --> $DIR/method_list_2.rs:30:5
   |
LL | /     pub fn from_iter<T>(iter: T) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::iter::FromIterator` or choosing a less ambiguous method name

error: method `from_str` can be confused for the standard trait method `std::str::FromStr::from_str`
  --> $DIR/method_list_2.rs:34:5
   |
LL | /     pub fn from_str(s: &str) -> Result<Self, Self> {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::str::FromStr` or choosing a less ambiguous method name

error: method `hash` can be confused for the standard trait method `std::hash::Hash::hash`
  --> $DIR/method_list_2.rs:38:5
   |
LL | /     pub fn hash(&self, state: &mut T) {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::hash::Hash` or choosing a less ambiguous method name

error: method `index` can be confused for the standard trait method `std::ops::Index::index`
  --> $DIR/method_list_2.rs:42:5
   |
LL | /     pub fn index(&self, index: usize) -> &Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Index` or choosing a less ambiguous method name

error: method `index_mut` can be confused for the standard trait method `std::ops::IndexMut::index_mut`
  --> $DIR/method_list_2.rs:46:5
   |
LL | /     pub fn index_mut(&mut self, index: usize) -> &mut Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::IndexMut` or choosing a less ambiguous method name

error: method `into_iter` can be confused for the standard trait method `std::iter::IntoIterator::into_iter`
  --> $DIR/method_list_2.rs:50:5
   |
LL | /     pub fn into_iter(self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::iter::IntoIterator` or choosing a less ambiguous method name

error: method `mul` can be confused for the standard trait method `std::ops::Mul::mul`
  --> $DIR/method_list_2.rs:54:5
   |
LL | /     pub fn mul(self, rhs: Self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Mul` or choosing a less ambiguous method name

error: method `neg` can be confused for the standard trait method `std::ops::Neg::neg`
  --> $DIR/method_list_2.rs:58:5
   |
LL | /     pub fn neg(self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Neg` or choosing a less ambiguous method name

error: method `next` can be confused for the standard trait method `std::iter::Iterator::next`
  --> $DIR/method_list_2.rs:62:5
   |
LL | /     pub fn next(&mut self) -> Option<Self> {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::iter::Iterator` or choosing a less ambiguous method name

error: method `not` can be confused for the standard trait method `std::ops::Not::not`
  --> $DIR/method_list_2.rs:66:5
   |
LL | /     pub fn not(self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Not` or choosing a less ambiguous method name

error: method `rem` can be confused for the standard trait method `std::ops::Rem::rem`
  --> $DIR/method_list_2.rs:70:5
   |
LL | /     pub fn rem(self, rhs: Self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Rem` or choosing a less ambiguous method name

error: method `shl` can be confused for the standard trait method `std::ops::Shl::shl`
  --> $DIR/method_list_2.rs:74:5
   |
LL | /     pub fn shl(self, rhs: Self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Shl` or choosing a less ambiguous method name

error: method `shr` can be confused for the standard trait method `std::ops::Shr::shr`
  --> $DIR/method_list_2.rs:78:5
   |
LL | /     pub fn shr(self, rhs: Self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Shr` or choosing a less ambiguous method name

error: method `sub` can be confused for the standard trait method `std::ops::Sub::sub`
  --> $DIR/method_list_2.rs:82:5
   |
LL | /     pub fn sub(self, rhs: Self) -> Self {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::ops::Sub` or choosing a less ambiguous method name

error: aborting due to 15 previous errors