fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
4.8 KiB105 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 |     a: Range<usize>,
5   |     ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
6   |
7   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::Range<usize>`
8   = note: required by `std::cmp::PartialOrd::partial_cmp`
9
10error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
11  --> $DIR/range_traits-1.rs:8:5
12   |
13LL |     b: RangeTo<usize>,
14   |     ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
15   |
16   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
17   = note: required by `std::cmp::PartialOrd::partial_cmp`
18
19error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
20  --> $DIR/range_traits-1.rs:11:5
21   |
22LL |     c: RangeFrom<usize>,
23   |     ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
24   |
25   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
26   = note: required by `std::cmp::PartialOrd::partial_cmp`
27
28error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
29  --> $DIR/range_traits-1.rs:14:5
30   |
31LL |     d: RangeFull,
32   |     ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
33   |
34   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFull`
35   = note: required by `std::cmp::PartialOrd::partial_cmp`
36
37error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
38  --> $DIR/range_traits-1.rs:17:5
39   |
40LL |     e: RangeInclusive<usize>,
41   |     ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
42   |
43   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
44   = note: required by `std::cmp::PartialOrd::partial_cmp`
45
46error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
47  --> $DIR/range_traits-1.rs:20:5
48   |
49LL |     f: RangeToInclusive<usize>,
50   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
51   |
52   = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
53   = note: required by `std::cmp::PartialOrd::partial_cmp`
54
55error[E0277]: the trait bound `std::ops::Range<usize>: std::cmp::Ord` is not satisfied
56  --> $DIR/range_traits-1.rs:5:5
57   |
58LL |     a: Range<usize>,
59   |     ^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::Range<usize>`
60   |
61   = note: required by `std::cmp::Ord::cmp`
62
63error[E0277]: the trait bound `std::ops::RangeTo<usize>: std::cmp::Ord` is not satisfied
64  --> $DIR/range_traits-1.rs:8:5
65   |
66LL |     b: RangeTo<usize>,
67   |     ^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeTo<usize>`
68   |
69   = note: required by `std::cmp::Ord::cmp`
70
71error[E0277]: the trait bound `std::ops::RangeFrom<usize>: std::cmp::Ord` is not satisfied
72  --> $DIR/range_traits-1.rs:11:5
73   |
74LL |     c: RangeFrom<usize>,
75   |     ^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeFrom<usize>`
76   |
77   = note: required by `std::cmp::Ord::cmp`
78
79error[E0277]: the trait bound `std::ops::RangeFull: std::cmp::Ord` is not satisfied
80  --> $DIR/range_traits-1.rs:14:5
81   |
82LL |     d: RangeFull,
83   |     ^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeFull`
84   |
85   = note: required by `std::cmp::Ord::cmp`
86
87error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: std::cmp::Ord` is not satisfied
88  --> $DIR/range_traits-1.rs:17:5
89   |
90LL |     e: RangeInclusive<usize>,
91   |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeInclusive<usize>`
92   |
93   = note: required by `std::cmp::Ord::cmp`
94
95error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: std::cmp::Ord` is not satisfied
96  --> $DIR/range_traits-1.rs:20:5
97   |
98LL |     f: RangeToInclusive<usize>,
99   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
100   |
101   = note: required by `std::cmp::Ord::cmp`
102
103error: aborting due to 12 previous errors
104
105For more information about this error, try `rustc --explain E0277`.