]> git.proxmox.com Git - rustc.git/blob - src/test/ui/range/range_traits-1.stderr
New upstream version 1.42.0+dfsg1
[rustc.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 | 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:12: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:19: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:26: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:33: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:40: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]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
56 --> $DIR/range_traits-1.rs:5:5
57 |
58 LL | a: Range<usize>,
59 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
60 |
61 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::Range<usize>`
62 = note: required by `std::cmp::PartialOrd::partial_cmp`
63
64 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
65 --> $DIR/range_traits-1.rs:12:5
66 |
67 LL | b: RangeTo<usize>,
68 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
69 |
70 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
71 = note: required by `std::cmp::PartialOrd::partial_cmp`
72
73 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
74 --> $DIR/range_traits-1.rs:19:5
75 |
76 LL | c: RangeFrom<usize>,
77 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
78 |
79 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
80 = note: required by `std::cmp::PartialOrd::partial_cmp`
81
82 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
83 --> $DIR/range_traits-1.rs:26:5
84 |
85 LL | d: RangeFull,
86 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
87 |
88 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFull`
89 = note: required by `std::cmp::PartialOrd::partial_cmp`
90
91 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
92 --> $DIR/range_traits-1.rs:33:5
93 |
94 LL | e: RangeInclusive<usize>,
95 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
96 |
97 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
98 = note: required by `std::cmp::PartialOrd::partial_cmp`
99
100 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
101 --> $DIR/range_traits-1.rs:40:5
102 |
103 LL | f: RangeToInclusive<usize>,
104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
105 |
106 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
107 = note: required by `std::cmp::PartialOrd::partial_cmp`
108
109 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
110 --> $DIR/range_traits-1.rs:5:5
111 |
112 LL | a: Range<usize>,
113 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
114 |
115 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::Range<usize>`
116 = note: required by `std::cmp::PartialOrd::partial_cmp`
117
118 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
119 --> $DIR/range_traits-1.rs:12:5
120 |
121 LL | b: RangeTo<usize>,
122 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
123 |
124 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
125 = note: required by `std::cmp::PartialOrd::partial_cmp`
126
127 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
128 --> $DIR/range_traits-1.rs:19:5
129 |
130 LL | c: RangeFrom<usize>,
131 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
132 |
133 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
134 = note: required by `std::cmp::PartialOrd::partial_cmp`
135
136 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
137 --> $DIR/range_traits-1.rs:26:5
138 |
139 LL | d: RangeFull,
140 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
141 |
142 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFull`
143 = note: required by `std::cmp::PartialOrd::partial_cmp`
144
145 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
146 --> $DIR/range_traits-1.rs:33:5
147 |
148 LL | e: RangeInclusive<usize>,
149 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
150 |
151 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
152 = note: required by `std::cmp::PartialOrd::partial_cmp`
153
154 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
155 --> $DIR/range_traits-1.rs:40:5
156 |
157 LL | f: RangeToInclusive<usize>,
158 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
159 |
160 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
161 = note: required by `std::cmp::PartialOrd::partial_cmp`
162
163 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
164 --> $DIR/range_traits-1.rs:5:5
165 |
166 LL | a: Range<usize>,
167 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
168 |
169 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::Range<usize>`
170 = note: required by `std::cmp::PartialOrd::partial_cmp`
171
172 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
173 --> $DIR/range_traits-1.rs:12:5
174 |
175 LL | b: RangeTo<usize>,
176 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
177 |
178 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
179 = note: required by `std::cmp::PartialOrd::partial_cmp`
180
181 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
182 --> $DIR/range_traits-1.rs:19:5
183 |
184 LL | c: RangeFrom<usize>,
185 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
186 |
187 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
188 = note: required by `std::cmp::PartialOrd::partial_cmp`
189
190 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
191 --> $DIR/range_traits-1.rs:26:5
192 |
193 LL | d: RangeFull,
194 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
195 |
196 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFull`
197 = note: required by `std::cmp::PartialOrd::partial_cmp`
198
199 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
200 --> $DIR/range_traits-1.rs:33:5
201 |
202 LL | e: RangeInclusive<usize>,
203 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
204 |
205 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
206 = note: required by `std::cmp::PartialOrd::partial_cmp`
207
208 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
209 --> $DIR/range_traits-1.rs:40:5
210 |
211 LL | f: RangeToInclusive<usize>,
212 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
213 |
214 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
215 = note: required by `std::cmp::PartialOrd::partial_cmp`
216
217 error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
218 --> $DIR/range_traits-1.rs:5:5
219 |
220 LL | a: Range<usize>,
221 | ^^^^^^^^^^^^^^^ no implementation for `std::ops::Range<usize> < std::ops::Range<usize>` and `std::ops::Range<usize> > std::ops::Range<usize>`
222 |
223 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::Range<usize>`
224 = note: required by `std::cmp::PartialOrd::partial_cmp`
225
226 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
227 --> $DIR/range_traits-1.rs:12:5
228 |
229 LL | b: RangeTo<usize>,
230 | ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
231 |
232 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
233 = note: required by `std::cmp::PartialOrd::partial_cmp`
234
235 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
236 --> $DIR/range_traits-1.rs:19:5
237 |
238 LL | c: RangeFrom<usize>,
239 | ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
240 |
241 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
242 = note: required by `std::cmp::PartialOrd::partial_cmp`
243
244 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
245 --> $DIR/range_traits-1.rs:26:5
246 |
247 LL | d: RangeFull,
248 | ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
249 |
250 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeFull`
251 = note: required by `std::cmp::PartialOrd::partial_cmp`
252
253 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
254 --> $DIR/range_traits-1.rs:33:5
255 |
256 LL | e: RangeInclusive<usize>,
257 | ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
258 |
259 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
260 = note: required by `std::cmp::PartialOrd::partial_cmp`
261
262 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
263 --> $DIR/range_traits-1.rs:40:5
264 |
265 LL | f: RangeToInclusive<usize>,
266 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
267 |
268 = help: the trait `std::cmp::PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
269 = note: required by `std::cmp::PartialOrd::partial_cmp`
270
271 error[E0277]: the trait bound `std::ops::Range<usize>: std::cmp::Ord` is not satisfied
272 --> $DIR/range_traits-1.rs:5:5
273 |
274 LL | a: Range<usize>,
275 | ^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::Range<usize>`
276 |
277 = note: required by `std::cmp::Ord::cmp`
278
279 error[E0277]: the trait bound `std::ops::RangeTo<usize>: std::cmp::Ord` is not satisfied
280 --> $DIR/range_traits-1.rs:12:5
281 |
282 LL | b: RangeTo<usize>,
283 | ^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeTo<usize>`
284 |
285 = note: required by `std::cmp::Ord::cmp`
286
287 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: std::cmp::Ord` is not satisfied
288 --> $DIR/range_traits-1.rs:19:5
289 |
290 LL | c: RangeFrom<usize>,
291 | ^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeFrom<usize>`
292 |
293 = note: required by `std::cmp::Ord::cmp`
294
295 error[E0277]: the trait bound `std::ops::RangeFull: std::cmp::Ord` is not satisfied
296 --> $DIR/range_traits-1.rs:26:5
297 |
298 LL | d: RangeFull,
299 | ^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeFull`
300 |
301 = note: required by `std::cmp::Ord::cmp`
302
303 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: std::cmp::Ord` is not satisfied
304 --> $DIR/range_traits-1.rs:33:5
305 |
306 LL | e: RangeInclusive<usize>,
307 | ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeInclusive<usize>`
308 |
309 = note: required by `std::cmp::Ord::cmp`
310
311 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: std::cmp::Ord` is not satisfied
312 --> $DIR/range_traits-1.rs:40:5
313 |
314 LL | f: RangeToInclusive<usize>,
315 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
316 |
317 = note: required by `std::cmp::Ord::cmp`
318
319 error: aborting due to 36 previous errors
320
321 For more information about this error, try `rustc --explain E0277`.