1 #![allow(clippy::derive_partial_eq_without_eq)]
3 #[derive(PartialEq, Hash)]
6 impl PartialEq<u64> for Foo {
7 fn eq(&self, _: &u64) -> bool {
15 impl PartialEq for Bar {
16 fn eq(&self, _: &Bar) -> bool {
24 impl PartialEq<Baz> for Baz {
25 fn eq(&self, _: &Baz) -> bool {
33 impl std::hash::Hash for Bah {
34 fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
42 // We don't want to lint on user-defined traits called `Hash`
46 use std::hash::{Hash, Hasher};
52 fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}