1 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
2 --> $DIR/range_traits-1.rs:5:5
4 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
5 | ---------- in this derive macro expansion
6 LL | struct AllTheRanges {
8 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
10 = help: the trait `PartialOrd` is not implemented for `std::ops::Range<usize>`
11 note: required by `std::cmp::PartialOrd::partial_cmp`
12 --> $SRC_DIR/core/src/cmp.rs:LL:COL
14 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
15 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
18 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
19 --> $DIR/range_traits-1.rs:8:5
21 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
22 | ---------- in this derive macro expansion
24 LL | b: RangeTo<usize>,
25 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
27 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
28 note: required by `std::cmp::PartialOrd::partial_cmp`
29 --> $SRC_DIR/core/src/cmp.rs:LL:COL
31 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
35 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
36 --> $DIR/range_traits-1.rs:11:5
38 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
39 | ---------- in this derive macro expansion
41 LL | c: RangeFrom<usize>,
42 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
44 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
45 note: required by `std::cmp::PartialOrd::partial_cmp`
46 --> $SRC_DIR/core/src/cmp.rs:LL:COL
48 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
52 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
53 --> $DIR/range_traits-1.rs:14:5
55 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
56 | ---------- in this derive macro expansion
59 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
61 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
62 note: required by `std::cmp::PartialOrd::partial_cmp`
63 --> $SRC_DIR/core/src/cmp.rs:LL:COL
65 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
66 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
69 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
70 --> $DIR/range_traits-1.rs:17:5
72 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
73 | ---------- in this derive macro expansion
75 LL | e: RangeInclusive<usize>,
76 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
78 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
79 note: required by `std::cmp::PartialOrd::partial_cmp`
80 --> $SRC_DIR/core/src/cmp.rs:LL:COL
82 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
83 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
86 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
87 --> $DIR/range_traits-1.rs:20:5
89 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
90 | ---------- in this derive macro expansion
92 LL | f: RangeToInclusive<usize>,
93 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
95 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
96 note: required by `std::cmp::PartialOrd::partial_cmp`
97 --> $SRC_DIR/core/src/cmp.rs:LL:COL
99 LL | fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
100 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
103 error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
104 --> $DIR/range_traits-1.rs:5:5
106 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
107 | --- in this derive macro expansion
108 LL | struct AllTheRanges {
109 LL | a: Range<usize>,
110 | ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
112 note: required by `std::cmp::Ord::cmp`
113 --> $SRC_DIR/core/src/cmp.rs:LL:COL
115 LL | fn cmp(&self, other: &Self) -> Ordering;
116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
119 error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
120 --> $DIR/range_traits-1.rs:8:5
122 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
123 | --- in this derive macro expansion
125 LL | b: RangeTo<usize>,
126 | ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
128 note: required by `std::cmp::Ord::cmp`
129 --> $SRC_DIR/core/src/cmp.rs:LL:COL
131 LL | fn cmp(&self, other: &Self) -> Ordering;
132 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
135 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
136 --> $DIR/range_traits-1.rs:11:5
138 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
139 | --- in this derive macro expansion
141 LL | c: RangeFrom<usize>,
142 | ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
144 note: required by `std::cmp::Ord::cmp`
145 --> $SRC_DIR/core/src/cmp.rs:LL:COL
147 LL | fn cmp(&self, other: &Self) -> Ordering;
148 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
151 error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
152 --> $DIR/range_traits-1.rs:14:5
154 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
155 | --- in this derive macro expansion
158 | ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
160 note: required by `std::cmp::Ord::cmp`
161 --> $SRC_DIR/core/src/cmp.rs:LL:COL
163 LL | fn cmp(&self, other: &Self) -> Ordering;
164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
167 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
168 --> $DIR/range_traits-1.rs:17:5
170 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
171 | --- in this derive macro expansion
173 LL | e: RangeInclusive<usize>,
174 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
176 note: required by `std::cmp::Ord::cmp`
177 --> $SRC_DIR/core/src/cmp.rs:LL:COL
179 LL | fn cmp(&self, other: &Self) -> Ordering;
180 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
181 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
183 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
184 --> $DIR/range_traits-1.rs:20:5
186 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
187 | --- in this derive macro expansion
189 LL | f: RangeToInclusive<usize>,
190 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
192 note: required by `std::cmp::Ord::cmp`
193 --> $SRC_DIR/core/src/cmp.rs:LL:COL
195 LL | fn cmp(&self, other: &Self) -> Ordering;
196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
199 error: aborting due to 12 previous errors
201 For more information about this error, try `rustc --explain E0277`.