fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
16.3 KiB321 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:12: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:19: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:26: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:33: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:40: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]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
56  --> $DIR/range_traits-1.rs:5:5
57   |
58LL |     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
64error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
65  --> $DIR/range_traits-1.rs:12:5
66   |
67LL |     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
73error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
74  --> $DIR/range_traits-1.rs:19:5
75   |
76LL |     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
82error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
83  --> $DIR/range_traits-1.rs:26:5
84   |
85LL |     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
91error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
92  --> $DIR/range_traits-1.rs:33:5
93   |
94LL |     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
100error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
101  --> $DIR/range_traits-1.rs:40:5
102   |
103LL |     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
109error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
110  --> $DIR/range_traits-1.rs:5:5
111   |
112LL |     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
118error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
119  --> $DIR/range_traits-1.rs:12:5
120   |
121LL |     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
127error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
128  --> $DIR/range_traits-1.rs:19:5
129   |
130LL |     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
136error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
137  --> $DIR/range_traits-1.rs:26:5
138   |
139LL |     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
145error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
146  --> $DIR/range_traits-1.rs:33:5
147   |
148LL |     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
154error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
155  --> $DIR/range_traits-1.rs:40:5
156   |
157LL |     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
163error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
164  --> $DIR/range_traits-1.rs:5:5
165   |
166LL |     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
172error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
173  --> $DIR/range_traits-1.rs:12:5
174   |
175LL |     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
181error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
182  --> $DIR/range_traits-1.rs:19:5
183   |
184LL |     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
190error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
191  --> $DIR/range_traits-1.rs:26:5
192   |
193LL |     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
199error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
200  --> $DIR/range_traits-1.rs:33:5
201   |
202LL |     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
208error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
209  --> $DIR/range_traits-1.rs:40:5
210   |
211LL |     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
217error[E0277]: can't compare `std::ops::Range<usize>` with `std::ops::Range<usize>`
218  --> $DIR/range_traits-1.rs:5:5
219   |
220LL |     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
226error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
227  --> $DIR/range_traits-1.rs:12:5
228   |
229LL |     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
235error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
236  --> $DIR/range_traits-1.rs:19:5
237   |
238LL |     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
244error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
245  --> $DIR/range_traits-1.rs:26:5
246   |
247LL |     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
253error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
254  --> $DIR/range_traits-1.rs:33:5
255   |
256LL |     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
262error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
263  --> $DIR/range_traits-1.rs:40:5
264   |
265LL |     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
271error[E0277]: the trait bound `std::ops::Range<usize>: std::cmp::Ord` is not satisfied
272  --> $DIR/range_traits-1.rs:5:5
273   |
274LL |     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
279error[E0277]: the trait bound `std::ops::RangeTo<usize>: std::cmp::Ord` is not satisfied
280  --> $DIR/range_traits-1.rs:12:5
281   |
282LL |     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
287error[E0277]: the trait bound `std::ops::RangeFrom<usize>: std::cmp::Ord` is not satisfied
288  --> $DIR/range_traits-1.rs:19:5
289   |
290LL |     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
295error[E0277]: the trait bound `std::ops::RangeFull: std::cmp::Ord` is not satisfied
296  --> $DIR/range_traits-1.rs:26:5
297   |
298LL |     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
303error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: std::cmp::Ord` is not satisfied
304  --> $DIR/range_traits-1.rs:33:5
305   |
306LL |     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
311error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: std::cmp::Ord` is not satisfied
312  --> $DIR/range_traits-1.rs:40:5
313   |
314LL |     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
319error: aborting due to 36 previous errors
320
321For more information about this error, try `rustc --explain E0277`.