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: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
13 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
14 --> $DIR/range_traits-1.rs:8:5
16 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
17 | ---------- in this derive macro expansion
19 LL | b: RangeTo<usize>,
20 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
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)
25 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
26 --> $DIR/range_traits-1.rs:11:5
28 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
29 | ---------- in this derive macro expansion
31 LL | c: RangeFrom<usize>,
32 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
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)
37 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
38 --> $DIR/range_traits-1.rs:14:5
40 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
41 | ---------- in this derive macro expansion
44 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
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)
49 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
50 --> $DIR/range_traits-1.rs:17:5
52 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
53 | ---------- in this derive macro expansion
55 LL | e: RangeInclusive<usize>,
56 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
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)
61 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
62 --> $DIR/range_traits-1.rs:20:5
64 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
65 | ---------- in this derive macro expansion
67 LL | f: RangeToInclusive<usize>,
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
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)
73 error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
74 --> $DIR/range_traits-1.rs:5:5
76 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
77 | --- in this derive macro expansion
78 LL | struct AllTheRanges {
80 | ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
82 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
84 error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
85 --> $DIR/range_traits-1.rs:8:5
87 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
88 | --- in this derive macro expansion
90 LL | b: RangeTo<usize>,
91 | ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
93 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
95 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
96 --> $DIR/range_traits-1.rs:11:5
98 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
99 | --- in this derive macro expansion
101 LL | c: RangeFrom<usize>,
102 | ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
104 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
106 error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
107 --> $DIR/range_traits-1.rs:14:5
109 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
110 | --- in this derive macro expansion
113 | ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
115 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
117 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
118 --> $DIR/range_traits-1.rs:17:5
120 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
121 | --- in this derive macro expansion
123 LL | e: RangeInclusive<usize>,
124 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
126 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
128 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
129 --> $DIR/range_traits-1.rs:20:5
131 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
132 | --- in this derive macro expansion
134 LL | f: RangeToInclusive<usize>,
135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
137 = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
139 error: aborting due to 12 previous errors
141 For more information about this error, try `rustc --explain E0277`.