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