]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/derive.stderr
af3ee3c042b08827829d3d8cc62e226c18ea9e46
[rust.git] / clippy_tests / examples / derive.stderr
1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2   --> derive.rs:17:10
3    |
4 17 | #[derive(Hash)]
5    |          ^^^^
6    |
7    = note: `-D derive-hash-xor-eq` implied by `-D warnings`
8 note: `PartialEq` implemented here
9   --> derive.rs:20:1
10    |
11 20 | / impl PartialEq for Bar {
12 21 | |     fn eq(&self, _: &Bar) -> bool { true }
13 22 | | }
14    | |_^
15
16 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
17   --> derive.rs:24:10
18    |
19 24 | #[derive(Hash)]
20    |          ^^^^
21    |
22    = note: `-D derive-hash-xor-eq` implied by `-D warnings`
23 note: `PartialEq` implemented here
24   --> derive.rs:27:1
25    |
26 27 | / impl PartialEq<Baz> for Baz {
27 28 | |     fn eq(&self, _: &Baz) -> bool { true }
28 29 | | }
29    | |_^
30
31 error: you are implementing `Hash` explicitly but have derived `PartialEq`
32   --> derive.rs:34:1
33    |
34 34 | / impl Hash for Bah {
35 35 | |     fn hash<H: Hasher>(&self, _: &mut H) {}
36 36 | | }
37    | |_^
38    |
39    = note: `-D derive-hash-xor-eq` implied by `-D warnings`
40 note: `PartialEq` implemented here
41   --> derive.rs:31:10
42    |
43 31 | #[derive(PartialEq)]
44    |          ^^^^^^^^^
45
46 error: you are implementing `Clone` explicitly on a `Copy` type
47   --> derive.rs:41:1
48    |
49 41 | / impl Clone for Qux {
50 42 | |     fn clone(&self) -> Self { Qux }
51 43 | | }
52    | |_^
53    |
54    = note: `-D expl-impl-clone-on-copy` implied by `-D warnings`
55 note: consider deriving `Clone` or removing `Copy`
56   --> derive.rs:41:1
57    |
58 41 | / impl Clone for Qux {
59 42 | |     fn clone(&self) -> Self { Qux }
60 43 | | }
61    | |_^
62
63 error: you are implementing `Clone` explicitly on a `Copy` type
64   --> derive.rs:65:1
65    |
66 65 | / impl<'a> Clone for Lt<'a> {
67 66 | |     fn clone(&self) -> Self { unimplemented!() }
68 67 | | }
69    | |_^
70    |
71    = note: `-D expl-impl-clone-on-copy` implied by `-D warnings`
72 note: consider deriving `Clone` or removing `Copy`
73   --> derive.rs:65:1
74    |
75 65 | / impl<'a> Clone for Lt<'a> {
76 66 | |     fn clone(&self) -> Self { unimplemented!() }
77 67 | | }
78    | |_^
79
80 error: aborting due to previous error(s)
81
82 error: Could not compile `clippy_tests`.
83
84 To learn more, run the command again with --verbose.