]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/should_impl_trait/method_list_1.stderr
Merge commit 'ac0e10aa68325235069a842f47499852b2dee79e' into clippyup
[rust.git] / src / tools / clippy / tests / ui / should_impl_trait / method_list_1.stderr
1 error: method `add` can be confused for the standard trait method `std::ops::Add::add`
2   --> $DIR/method_list_1.rs:25:5
3    |
4 LL | /     pub fn add(self, other: T) -> T {
5 LL | |         unimplemented!()
6 LL | |     }
7    | |_____^
8    |
9    = help: consider implementing the trait `std::ops::Add` or choosing a less ambiguous method name
10    = note: `-D clippy::should-implement-trait` implied by `-D warnings`
11
12 error: method `as_mut` can be confused for the standard trait method `std::convert::AsMut::as_mut`
13   --> $DIR/method_list_1.rs:29:5
14    |
15 LL | /     pub fn as_mut(&mut self) -> &mut T {
16 LL | |         unimplemented!()
17 LL | |     }
18    | |_____^
19    |
20    = help: consider implementing the trait `std::convert::AsMut` or choosing a less ambiguous method name
21
22 error: method `as_ref` can be confused for the standard trait method `std::convert::AsRef::as_ref`
23   --> $DIR/method_list_1.rs:33:5
24    |
25 LL | /     pub fn as_ref(&self) -> &T {
26 LL | |         unimplemented!()
27 LL | |     }
28    | |_____^
29    |
30    = help: consider implementing the trait `std::convert::AsRef` or choosing a less ambiguous method name
31
32 error: method `bitand` can be confused for the standard trait method `std::ops::BitAnd::bitand`
33   --> $DIR/method_list_1.rs:37:5
34    |
35 LL | /     pub fn bitand(self, rhs: T) -> T {
36 LL | |         unimplemented!()
37 LL | |     }
38    | |_____^
39    |
40    = help: consider implementing the trait `std::ops::BitAnd` or choosing a less ambiguous method name
41
42 error: method `bitor` can be confused for the standard trait method `std::ops::BitOr::bitor`
43   --> $DIR/method_list_1.rs:41:5
44    |
45 LL | /     pub fn bitor(self, rhs: Self) -> Self {
46 LL | |         unimplemented!()
47 LL | |     }
48    | |_____^
49    |
50    = help: consider implementing the trait `std::ops::BitOr` or choosing a less ambiguous method name
51
52 error: method `bitxor` can be confused for the standard trait method `std::ops::BitXor::bitxor`
53   --> $DIR/method_list_1.rs:45:5
54    |
55 LL | /     pub fn bitxor(self, rhs: Self) -> Self {
56 LL | |         unimplemented!()
57 LL | |     }
58    | |_____^
59    |
60    = help: consider implementing the trait `std::ops::BitXor` or choosing a less ambiguous method name
61
62 error: method `borrow` can be confused for the standard trait method `std::borrow::Borrow::borrow`
63   --> $DIR/method_list_1.rs:49:5
64    |
65 LL | /     pub fn borrow(&self) -> &str {
66 LL | |         unimplemented!()
67 LL | |     }
68    | |_____^
69    |
70    = help: consider implementing the trait `std::borrow::Borrow` or choosing a less ambiguous method name
71
72 error: method `borrow_mut` can be confused for the standard trait method `std::borrow::BorrowMut::borrow_mut`
73   --> $DIR/method_list_1.rs:53:5
74    |
75 LL | /     pub fn borrow_mut(&mut self) -> &mut str {
76 LL | |         unimplemented!()
77 LL | |     }
78    | |_____^
79    |
80    = help: consider implementing the trait `std::borrow::BorrowMut` or choosing a less ambiguous method name
81
82 error: method `clone` can be confused for the standard trait method `std::clone::Clone::clone`
83   --> $DIR/method_list_1.rs:57:5
84    |
85 LL | /     pub fn clone(&self) -> Self {
86 LL | |         unimplemented!()
87 LL | |     }
88    | |_____^
89    |
90    = help: consider implementing the trait `std::clone::Clone` or choosing a less ambiguous method name
91
92 error: method `cmp` can be confused for the standard trait method `std::cmp::Ord::cmp`
93   --> $DIR/method_list_1.rs:61:5
94    |
95 LL | /     pub fn cmp(&self, other: &Self) -> Self {
96 LL | |         unimplemented!()
97 LL | |     }
98    | |_____^
99    |
100    = help: consider implementing the trait `std::cmp::Ord` or choosing a less ambiguous method name
101
102 error: method `default` can be confused for the standard trait method `std::default::Default::default`
103   --> $DIR/method_list_1.rs:65:5
104    |
105 LL | /     pub fn default() -> Self {
106 LL | |         unimplemented!()
107 LL | |     }
108    | |_____^
109    |
110    = help: consider implementing the trait `std::default::Default` or choosing a less ambiguous method name
111
112 error: method `deref` can be confused for the standard trait method `std::ops::Deref::deref`
113   --> $DIR/method_list_1.rs:69:5
114    |
115 LL | /     pub fn deref(&self) -> &Self {
116 LL | |         unimplemented!()
117 LL | |     }
118    | |_____^
119    |
120    = help: consider implementing the trait `std::ops::Deref` or choosing a less ambiguous method name
121
122 error: method `deref_mut` can be confused for the standard trait method `std::ops::DerefMut::deref_mut`
123   --> $DIR/method_list_1.rs:73:5
124    |
125 LL | /     pub fn deref_mut(&mut self) -> &mut Self {
126 LL | |         unimplemented!()
127 LL | |     }
128    | |_____^
129    |
130    = help: consider implementing the trait `std::ops::DerefMut` or choosing a less ambiguous method name
131
132 error: method `div` can be confused for the standard trait method `std::ops::Div::div`
133   --> $DIR/method_list_1.rs:77:5
134    |
135 LL | /     pub fn div(self, rhs: Self) -> Self {
136 LL | |         unimplemented!()
137 LL | |     }
138    | |_____^
139    |
140    = help: consider implementing the trait `std::ops::Div` or choosing a less ambiguous method name
141
142 error: method `drop` can be confused for the standard trait method `std::ops::Drop::drop`
143   --> $DIR/method_list_1.rs:81:5
144    |
145 LL | /     pub fn drop(&mut self) {
146 LL | |         unimplemented!()
147 LL | |     }
148    | |_____^
149    |
150    = help: consider implementing the trait `std::ops::Drop` or choosing a less ambiguous method name
151
152 error: aborting due to 15 previous errors
153