fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
7.3 KiB141 linesraw
1error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
2  --> $DIR/range_traits-1.rs:5:5
3   |
4LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
5   |                                ---------- in this derive macro expansion
6LL | struct AllTheRanges {
7LL |     a: Range<usize>,
8   |     ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
9   |
10   = help: the trait `PartialOrd` is not implemented for `std::ops::Range<usize>`
11   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
12
13error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
14  --> $DIR/range_traits-1.rs:8:5
15   |
16LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
17   |                                ---------- in this derive macro expansion
18...
19LL |     b: RangeTo<usize>,
20   |     ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
21   |
22   = help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
23   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
24
25error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
26  --> $DIR/range_traits-1.rs:11:5
27   |
28LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
29   |                                ---------- in this derive macro expansion
30...
31LL |     c: RangeFrom<usize>,
32   |     ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
33   |
34   = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
35   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
36
37error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
38  --> $DIR/range_traits-1.rs:14:5
39   |
40LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
41   |                                ---------- in this derive macro expansion
42...
43LL |     d: RangeFull,
44   |     ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
45   |
46   = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
47   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
48
49error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
50  --> $DIR/range_traits-1.rs:17:5
51   |
52LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
53   |                                ---------- in this derive macro expansion
54...
55LL |     e: RangeInclusive<usize>,
56   |     ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
57   |
58   = help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
59   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
60
61error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
62  --> $DIR/range_traits-1.rs:20:5
63   |
64LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
65   |                                ---------- in this derive macro expansion
66...
67LL |     f: RangeToInclusive<usize>,
68   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
69   |
70   = help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
71   = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
72
73error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
74  --> $DIR/range_traits-1.rs:5:5
75   |
76LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
77   |                                            --- in this derive macro expansion
78LL | struct AllTheRanges {
79LL |     a: Range<usize>,
80   |     ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
81   |
82   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
83
84error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
85  --> $DIR/range_traits-1.rs:8:5
86   |
87LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
88   |                                            --- in this derive macro expansion
89...
90LL |     b: RangeTo<usize>,
91   |     ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
92   |
93   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
94
95error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
96  --> $DIR/range_traits-1.rs:11:5
97   |
98LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
99   |                                            --- in this derive macro expansion
100...
101LL |     c: RangeFrom<usize>,
102   |     ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
103   |
104   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
105
106error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
107  --> $DIR/range_traits-1.rs:14:5
108   |
109LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
110   |                                            --- in this derive macro expansion
111...
112LL |     d: RangeFull,
113   |     ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
114   |
115   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
116
117error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
118  --> $DIR/range_traits-1.rs:17:5
119   |
120LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
121   |                                            --- in this derive macro expansion
122...
123LL |     e: RangeInclusive<usize>,
124   |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
125   |
126   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
127
128error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
129  --> $DIR/range_traits-1.rs:20:5
130   |
131LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
132   |                                            --- in this derive macro expansion
133...
134LL |     f: RangeToInclusive<usize>,
135   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
136   |
137   = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
138
139error: aborting due to 12 previous errors
140
141For more information about this error, try `rustc --explain E0277`.