1 #[derive(PartialEq, Hash)]
4 impl PartialEq<u64> for Foo {
5 fn eq(&self, _: &u64) -> bool {
13 impl PartialEq for Bar {
14 fn eq(&self, _: &Bar) -> bool {
22 impl PartialEq<Baz> for Baz {
23 fn eq(&self, _: &Baz) -> bool {
31 impl std::hash::Hash for Bah {
32 fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
40 // We don't want to lint on user-defined traits called `Hash`
44 use std::hash::{Hash, Hasher};
50 fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}