]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive.stderr
Merge pull request #1747 from Manishearth/mut_fp
[rust.git] / tests / ui / derive.stderr
1 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
2   --> $DIR/derive.rs:18:10
3    |
4 18 | #[derive(Hash)]
5    |          ^^^^
6    |
7    = note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
8 note: lint level defined here
9   --> $DIR/derive.rs:6:9
10    |
11 6  | #![deny(warnings)]
12    |         ^^^^^^^^
13 note: `PartialEq` implemented here
14   --> $DIR/derive.rs:21:1
15    |
16 21 | / impl PartialEq for Bar {
17 22 | |     fn eq(&self, _: &Bar) -> bool { true }
18 23 | | }
19    | |_^
20
21 error: you are deriving `Hash` but have implemented `PartialEq` explicitly
22   --> $DIR/derive.rs:25:10
23    |
24 25 | #[derive(Hash)]
25    |          ^^^^
26    |
27    = note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
28 note: `PartialEq` implemented here
29   --> $DIR/derive.rs:28:1
30    |
31 28 | / impl PartialEq<Baz> for Baz {
32 29 | |     fn eq(&self, _: &Baz) -> bool { true }
33 30 | | }
34    | |_^
35
36 error: you are implementing `Hash` explicitly but have derived `PartialEq`
37   --> $DIR/derive.rs:35:1
38    |
39 35 | / impl Hash for Bah {
40 36 | |     fn hash<H: Hasher>(&self, _: &mut H) {}
41 37 | | }
42    | |_^
43    |
44    = note: #[deny(derive_hash_xor_eq)] implied by #[deny(warnings)]
45 note: `PartialEq` implemented here
46   --> $DIR/derive.rs:32:10
47    |
48 32 | #[derive(PartialEq)]
49    |          ^^^^^^^^^
50
51 error: you are implementing `Clone` explicitly on a `Copy` type
52   --> $DIR/derive.rs:42:1
53    |
54 42 | / impl Clone for Qux {
55 43 | |     fn clone(&self) -> Self { Qux }
56 44 | | }
57    | |_^
58    |
59    = note: #[deny(expl_impl_clone_on_copy)] implied by #[deny(warnings)]
60 note: lint level defined here
61   --> $DIR/derive.rs:6:9
62    |
63 6  | #![deny(warnings)]
64    |         ^^^^^^^^
65 note: consider deriving `Clone` or removing `Copy`
66   --> $DIR/derive.rs:42:1
67    |
68 42 | / impl Clone for Qux {
69 43 | |     fn clone(&self) -> Self { Qux }
70 44 | | }
71    | |_^
72
73 error: you are implementing `Clone` explicitly on a `Copy` type
74   --> $DIR/derive.rs:66:1
75    |
76 66 | / impl<'a> Clone for Lt<'a> {
77 67 | |     fn clone(&self) -> Self { unimplemented!() }
78 68 | | }
79    | |_^
80    |
81    = note: #[deny(expl_impl_clone_on_copy)] implied by #[deny(warnings)]
82 note: consider deriving `Clone` or removing `Copy`
83   --> $DIR/derive.rs:66:1
84    |
85 66 | / impl<'a> Clone for Lt<'a> {
86 67 | |     fn clone(&self) -> Self { unimplemented!() }
87 68 | | }
88    | |_^
89
90 error: aborting due to 5 previous errors
91