1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2 --> $DIR/derive_hash_xor_eq.rs:10:10
7 = note: `#[deny(clippy::derive_hash_xor_eq)]` on by default
8 note: `PartialEq` implemented here
9 --> $DIR/derive_hash_xor_eq.rs:13:1
11 LL | / impl PartialEq for Bar {
12 LL | | fn eq(&self, _: &Bar) -> bool {
17 = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
19 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
20 --> $DIR/derive_hash_xor_eq.rs:19:10
25 note: `PartialEq` implemented here
26 --> $DIR/derive_hash_xor_eq.rs:22:1
28 LL | / impl PartialEq<Baz> for Baz {
29 LL | | fn eq(&self, _: &Baz) -> bool {
34 = note: this error originates in the derive macro `Hash` (in Nightly builds, run with -Z macro-backtrace for more info)
36 error: you are implementing `Hash` explicitly but have derived `PartialEq`
37 --> $DIR/derive_hash_xor_eq.rs:31:1
39 LL | / impl std::hash::Hash for Bah {
40 LL | | fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
44 note: `PartialEq` implemented here
45 --> $DIR/derive_hash_xor_eq.rs:28:10
47 LL | #[derive(PartialEq)]
49 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
51 error: you are implementing `Hash` explicitly but have derived `PartialEq`
52 --> $DIR/derive_hash_xor_eq.rs:49:5
54 LL | / impl Hash for Foo3 {
55 LL | | fn hash<H: std::hash::Hasher>(&self, _: &mut H) {}
59 note: `PartialEq` implemented here
60 --> $DIR/derive_hash_xor_eq.rs:46:14
62 LL | #[derive(PartialEq)]
64 = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
66 error: aborting due to 4 previous errors