]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range_traits-1.stderr
Rollup merge of #102092 - kxxt:patch-1, r=joshtriplett
[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:5:5
3    |
4 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
5    |                                ---------- in this derive macro expansion
6 LL | struct AllTheRanges {
7 LL |     a: Range<usize>,
8    |     ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
9    |
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)
12
13 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
14   --> $DIR/range_traits-1.rs:8:5
15    |
16 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
17    |                                ---------- in this derive macro expansion
18 ...
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>`
21    |
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)
24
25 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
26   --> $DIR/range_traits-1.rs:11:5
27    |
28 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
29    |                                ---------- in this derive macro expansion
30 ...
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>`
33    |
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)
36
37 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
38   --> $DIR/range_traits-1.rs:14:5
39    |
40 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
41    |                                ---------- in this derive macro expansion
42 ...
43 LL |     d: RangeFull,
44    |     ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
45    |
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)
48
49 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
50   --> $DIR/range_traits-1.rs:17:5
51    |
52 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
53    |                                ---------- in this derive macro expansion
54 ...
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>`
57    |
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)
60
61 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
62   --> $DIR/range_traits-1.rs:20:5
63    |
64 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
65    |                                ---------- in this derive macro expansion
66 ...
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>`
69    |
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)
72
73 error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
74   --> $DIR/range_traits-1.rs:5:5
75    |
76 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
77    |                                            --- in this derive macro expansion
78 LL | struct AllTheRanges {
79 LL |     a: Range<usize>,
80    |     ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
81    |
82    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
83
84 error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
85   --> $DIR/range_traits-1.rs:8:5
86    |
87 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
88    |                                            --- in this derive macro expansion
89 ...
90 LL |     b: RangeTo<usize>,
91    |     ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
92    |
93    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
94
95 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
96   --> $DIR/range_traits-1.rs:11:5
97    |
98 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
99    |                                            --- in this derive macro expansion
100 ...
101 LL |     c: RangeFrom<usize>,
102    |     ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
103    |
104    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
105
106 error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
107   --> $DIR/range_traits-1.rs:14:5
108    |
109 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
110    |                                            --- in this derive macro expansion
111 ...
112 LL |     d: RangeFull,
113    |     ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
114    |
115    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
116
117 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
118   --> $DIR/range_traits-1.rs:17:5
119    |
120 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
121    |                                            --- in this derive macro expansion
122 ...
123 LL |     e: RangeInclusive<usize>,
124    |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
125    |
126    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
127
128 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
129   --> $DIR/range_traits-1.rs:20:5
130    |
131 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
132    |                                            --- in this derive macro expansion
133 ...
134 LL |     f: RangeToInclusive<usize>,
135    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
136    |
137    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
138
139 error: aborting due to 12 previous errors
140
141 For more information about this error, try `rustc --explain E0277`.