1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2 --> examples/derive.rs:17:10
7 = note: `-D derive-hash-xor-eq` implied by `-D warnings`
8 note: `PartialEq` implemented here
9 --> examples/derive.rs:20:1
11 20 | / impl PartialEq for Bar {
12 21 | | fn eq(&self, _: &Bar) -> bool { true }
16 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
17 --> examples/derive.rs:24:10
22 = note: `-D derive-hash-xor-eq` implied by `-D warnings`
23 note: `PartialEq` implemented here
24 --> examples/derive.rs:27:1
26 27 | / impl PartialEq<Baz> for Baz {
27 28 | | fn eq(&self, _: &Baz) -> bool { true }
31 error: you are implementing `Hash` explicitly but have derived `PartialEq`
32 --> examples/derive.rs:34:1
34 34 | / impl Hash for Bah {
35 35 | | fn hash<H: Hasher>(&self, _: &mut H) {}
39 = note: `-D derive-hash-xor-eq` implied by `-D warnings`
40 note: `PartialEq` implemented here
41 --> examples/derive.rs:31:10
43 31 | #[derive(PartialEq)]
46 error: you are implementing `Clone` explicitly on a `Copy` type
47 --> examples/derive.rs:41:1
49 41 | / impl Clone for Qux {
50 42 | | fn clone(&self) -> Self { Qux }
54 = note: `-D expl-impl-clone-on-copy` implied by `-D warnings`
55 note: consider deriving `Clone` or removing `Copy`
56 --> examples/derive.rs:41:1
58 41 | / impl Clone for Qux {
59 42 | | fn clone(&self) -> Self { Qux }
63 error: you are implementing `Clone` explicitly on a `Copy` type
64 --> examples/derive.rs:65:1
66 65 | / impl<'a> Clone for Lt<'a> {
67 66 | | fn clone(&self) -> Self { unimplemented!() }
71 = note: `-D expl-impl-clone-on-copy` implied by `-D warnings`
72 note: consider deriving `Clone` or removing `Copy`
73 --> examples/derive.rs:65:1
75 65 | / impl<'a> Clone for Lt<'a> {
76 66 | | fn clone(&self) -> Self { unimplemented!() }
80 error: aborting due to 5 previous errors
82 error: Could not compile `clippy_tests`.
84 To learn more, run the command again with --verbose.