summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/should_impl_trait/method_list_1.stderr
blob: 2b7d4628c3fa02b703e9a58cb98b73d4a1dd6489 (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
error: method `add` can be confused for the standard trait method `std::ops::Add::add`
  --> $DIR/method_list_1.rs:25:5
   |
LL | /     pub fn add(self, other: T) -> T {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = note: `-D clippy::should-implement-trait` implied by `-D warnings`
   = help: consider implementing the trait `std::ops::Add` or choosing a less ambiguous method name

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

error: method `as_ref` can be confused for the standard trait method `std::convert::AsRef::as_ref`
  --> $DIR/method_list_1.rs:33:5
   |
LL | /     pub fn as_ref(&self) -> &T {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::convert::AsRef` or choosing a less ambiguous method name

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

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

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

error: method `borrow` can be confused for the standard trait method `std::borrow::Borrow::borrow`
  --> $DIR/method_list_1.rs:49:5
   |
LL | /     pub fn borrow(&self) -> &str {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::borrow::Borrow` or choosing a less ambiguous method name

error: method `borrow_mut` can be confused for the standard trait method `std::borrow::BorrowMut::borrow_mut`
  --> $DIR/method_list_1.rs:53:5
   |
LL | /     pub fn borrow_mut(&mut self) -> &mut str {
LL | |         unimplemented!()
LL | |     }
   | |_____^
   |
   = help: consider implementing the trait `std::borrow::BorrowMut` or choosing a less ambiguous method name

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

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

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

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

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

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

error: aborting due to 14 previous errors