]> git.lizzy.rs Git - rust.git/blob - tests/ui/derive_ord_xor_partial_ord.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / derive_ord_xor_partial_ord.stderr
1 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
2   --> $DIR/derive_ord_xor_partial_ord.rs:21:10
3    |
4 LL | #[derive(Ord, PartialEq, Eq)]
5    |          ^^^
6    |
7 note: `PartialOrd` implemented here
8   --> $DIR/derive_ord_xor_partial_ord.rs:24:1
9    |
10 LL | impl PartialOrd for DeriveOrd {
11    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = note: `-D clippy::derive-ord-xor-partial-ord` implied by `-D warnings`
13    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
14
15 error: you are deriving `Ord` but have implemented `PartialOrd` explicitly
16   --> $DIR/derive_ord_xor_partial_ord.rs:30:10
17    |
18 LL | #[derive(Ord, PartialEq, Eq)]
19    |          ^^^
20    |
21 note: `PartialOrd` implemented here
22   --> $DIR/derive_ord_xor_partial_ord.rs:33:1
23    |
24 LL | impl PartialOrd<DeriveOrdWithExplicitTypeVariable> for DeriveOrdWithExplicitTypeVariable {
25    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
26    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
27
28 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
29   --> $DIR/derive_ord_xor_partial_ord.rs:42:1
30    |
31 LL | / impl std::cmp::Ord for DerivePartialOrd {
32 LL | |     fn cmp(&self, other: &Self) -> Ordering {
33 LL | |         Ordering::Less
34 LL | |     }
35 LL | | }
36    | |_^
37    |
38 note: `PartialOrd` implemented here
39   --> $DIR/derive_ord_xor_partial_ord.rs:39:10
40    |
41 LL | #[derive(PartialOrd, PartialEq, Eq)]
42    |          ^^^^^^^^^^
43    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
44
45 error: you are implementing `Ord` explicitly but have derived `PartialOrd`
46   --> $DIR/derive_ord_xor_partial_ord.rs:62:5
47    |
48 LL | /     impl Ord for DerivePartialOrdInUseOrd {
49 LL | |         fn cmp(&self, other: &Self) -> Ordering {
50 LL | |             Ordering::Less
51 LL | |         }
52 LL | |     }
53    | |_____^
54    |
55 note: `PartialOrd` implemented here
56   --> $DIR/derive_ord_xor_partial_ord.rs:59:14
57    |
58 LL |     #[derive(PartialOrd, PartialEq, Eq)]
59    |              ^^^^^^^^^^
60    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
61
62 error: aborting due to 4 previous errors
63