]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range_traits-1.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / range / range_traits-1.stderr
1 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
2   --> $DIR/range_traits-1.rs:15:5
3    |
4 LL |     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
10 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
11   --> $DIR/range_traits-1.rs:18:5
12    |
13 LL |     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
19 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
20   --> $DIR/range_traits-1.rs:21:5
21    |
22 LL |     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
28 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
29   --> $DIR/range_traits-1.rs:24:5
30    |
31 LL |     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
37 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
38   --> $DIR/range_traits-1.rs:27:5
39    |
40 LL |     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
46 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
47   --> $DIR/range_traits-1.rs:30:5
48    |
49 LL |     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
55 error[E0277]: the trait bound `std::ops::Range<usize>: std::cmp::Ord` is not satisfied
56   --> $DIR/range_traits-1.rs:15:5
57    |
58 LL |     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
63 error[E0277]: the trait bound `std::ops::RangeTo<usize>: std::cmp::Ord` is not satisfied
64   --> $DIR/range_traits-1.rs:18:5
65    |
66 LL |     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
71 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: std::cmp::Ord` is not satisfied
72   --> $DIR/range_traits-1.rs:21:5
73    |
74 LL |     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
79 error[E0277]: the trait bound `std::ops::RangeFull: std::cmp::Ord` is not satisfied
80   --> $DIR/range_traits-1.rs:24:5
81    |
82 LL |     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
87 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: std::cmp::Ord` is not satisfied
88   --> $DIR/range_traits-1.rs:27:5
89    |
90 LL |     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
95 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: std::cmp::Ord` is not satisfied
96   --> $DIR/range_traits-1.rs:30:5
97    |
98 LL |     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
103 error: aborting due to 12 previous errors
104
105 For more information about this error, try `rustc --explain E0277`.