blob: b1e5bbbfa4c5f83f42b11194744ad4e78f0990b9 [file] [log] [blame]
error: method `eq` can be confused for the standard trait method `std::cmp::PartialEq::eq`
--> tests/ui/should_impl_trait/method_list_2.rs:26:5
|
LL | / pub fn eq(&self, other: &Self) -> bool {
LL | |
LL | | unimplemented!()
LL | | }
| |_____^
|
= help: consider implementing the trait `std::cmp::PartialEq` or choosing a less ambiguous method name
= note: `-D clippy::should-implement-trait` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::should_implement_trait)]`
error: method `from_iter` can be confused for the standard trait method `std::iter::FromIterator::from_iter`
--> tests/ui/should_impl_trait/method_list_2.rs:31:5
|
LL | / pub fn from_iter<T>(iter: T) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:36:5
|
LL | / pub fn from_str(s: &str) -> Result<Self, Self> {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:41:5
|
LL | / pub fn hash(&self, state: &mut T) {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:46:5
|
LL | / pub fn index(&self, index: usize) -> &Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:51:5
|
LL | / pub fn index_mut(&mut self, index: usize) -> &mut Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:56:5
|
LL | / pub fn into_iter(self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:61:5
|
LL | / pub fn mul(self, rhs: Self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:66:5
|
LL | / pub fn neg(self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:71:5
|
LL | / pub fn next(&mut self) -> Option<Self> {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:76:5
|
LL | / pub fn not(self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:81:5
|
LL | / pub fn rem(self, rhs: Self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:86:5
|
LL | / pub fn shl(self, rhs: Self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:91:5
|
LL | / pub fn shr(self, rhs: Self) -> Self {
LL | |
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`
--> tests/ui/should_impl_trait/method_list_2.rs:96:5
|
LL | / pub fn sub(self, rhs: Self) -> Self {
LL | |
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