2016-10-30 02:33:57 +01:00
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl PartialEq for Foo {
|
2018-12-09 23:26:16 +01:00
|
|
|
fn eq(&self, _: &Foo) -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
fn ne(&self, _: &Foo) -> bool {
|
|
|
|
false
|
|
|
|
}
|
2016-10-30 02:33:57 +01:00
|
|
|
}
|
|
|
|
|
2018-12-11 07:06:41 +01:00
|
|
|
struct Bar;
|
|
|
|
|
|
|
|
impl PartialEq for Bar {
|
2018-12-27 16:17:45 +01:00
|
|
|
fn eq(&self, _: &Bar) -> bool {
|
|
|
|
true
|
|
|
|
}
|
2018-12-11 07:06:41 +01:00
|
|
|
#[allow(clippy::partialeq_ne_impl)]
|
2018-12-27 16:17:45 +01:00
|
|
|
fn ne(&self, _: &Bar) -> bool {
|
|
|
|
false
|
|
|
|
}
|
2018-12-11 07:06:41 +01:00
|
|
|
}
|
|
|
|
|
2016-10-30 02:33:57 +01:00
|
|
|
fn main() {}
|