1 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
2 --> $DIR/range_traits-1.rs:5:5
5 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
7 = help: the trait `PartialOrd` is not implemented for `std::ops::Range<usize>`
8 = note: required by `std::cmp::PartialOrd::partial_cmp`
9 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
11 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
12 --> $DIR/range_traits-1.rs:8:5
14 LL | b: RangeTo<usize>,
15 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
17 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
18 = note: required by `std::cmp::PartialOrd::partial_cmp`
19 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
21 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
22 --> $DIR/range_traits-1.rs:11:5
24 LL | c: RangeFrom<usize>,
25 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
27 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
28 = note: required by `std::cmp::PartialOrd::partial_cmp`
29 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
31 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
32 --> $DIR/range_traits-1.rs:14:5
35 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
37 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
38 = note: required by `std::cmp::PartialOrd::partial_cmp`
39 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
41 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
42 --> $DIR/range_traits-1.rs:17:5
44 LL | e: RangeInclusive<usize>,
45 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
47 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
48 = note: required by `std::cmp::PartialOrd::partial_cmp`
49 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
51 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
52 --> $DIR/range_traits-1.rs:20:5
54 LL | f: RangeToInclusive<usize>,
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
57 = help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
58 = note: required by `std::cmp::PartialOrd::partial_cmp`
59 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
61 error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
62 --> $DIR/range_traits-1.rs:5:5
65 | ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
67 = note: required by `std::cmp::Ord::cmp`
68 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
70 error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
71 --> $DIR/range_traits-1.rs:8:5
73 LL | b: RangeTo<usize>,
74 | ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
76 = note: required by `std::cmp::Ord::cmp`
77 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
79 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
80 --> $DIR/range_traits-1.rs:11:5
82 LL | c: RangeFrom<usize>,
83 | ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
85 = note: required by `std::cmp::Ord::cmp`
86 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
88 error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
89 --> $DIR/range_traits-1.rs:14:5
92 | ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
94 = note: required by `std::cmp::Ord::cmp`
95 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
97 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
98 --> $DIR/range_traits-1.rs:17:5
100 LL | e: RangeInclusive<usize>,
101 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
103 = note: required by `std::cmp::Ord::cmp`
104 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
106 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
107 --> $DIR/range_traits-1.rs:20:5
109 LL | f: RangeToInclusive<usize>,
110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
112 = note: required by `std::cmp::Ord::cmp`
113 = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
115 error: aborting due to 12 previous errors
117 For more information about this error, try `rustc --explain E0277`.