]> git.lizzy.rs Git - rust.git/blob - src/test/ui/range/range_traits-1.stderr
Rollup merge of #87307 - michaelwoerister:pgo-unwind-msvc, r=nagisa
[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: required by `std::cmp::PartialOrd::partial_cmp`
12   --> $SRC_DIR/core/src/cmp.rs:LL:COL
13    |
14 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
15    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
17
18 error[E0277]: can't compare `std::ops::RangeTo<usize>` with `std::ops::RangeTo<usize>`
19   --> $DIR/range_traits-1.rs:8:5
20    |
21 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
22    |                                ---------- in this derive macro expansion
23 ...
24 LL |     b: RangeTo<usize>,
25    |     ^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeTo<usize> < std::ops::RangeTo<usize>` and `std::ops::RangeTo<usize> > std::ops::RangeTo<usize>`
26    |
27    = help: the trait `PartialOrd` is not implemented for `std::ops::RangeTo<usize>`
28 note: required by `std::cmp::PartialOrd::partial_cmp`
29   --> $SRC_DIR/core/src/cmp.rs:LL:COL
30    |
31 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
32    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
34
35 error[E0277]: can't compare `std::ops::RangeFrom<usize>` with `std::ops::RangeFrom<usize>`
36   --> $DIR/range_traits-1.rs:11:5
37    |
38 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
39    |                                ---------- in this derive macro expansion
40 ...
41 LL |     c: RangeFrom<usize>,
42    |     ^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeFrom<usize> < std::ops::RangeFrom<usize>` and `std::ops::RangeFrom<usize> > std::ops::RangeFrom<usize>`
43    |
44    = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFrom<usize>`
45 note: required by `std::cmp::PartialOrd::partial_cmp`
46   --> $SRC_DIR/core/src/cmp.rs:LL:COL
47    |
48 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
49    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
51
52 error[E0277]: can't compare `std::ops::RangeFull` with `std::ops::RangeFull`
53   --> $DIR/range_traits-1.rs:14:5
54    |
55 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
56    |                                ---------- in this derive macro expansion
57 ...
58 LL |     d: RangeFull,
59    |     ^^^^^^^^^^^^ no implementation for `std::ops::RangeFull < std::ops::RangeFull` and `std::ops::RangeFull > std::ops::RangeFull`
60    |
61    = help: the trait `PartialOrd` is not implemented for `std::ops::RangeFull`
62 note: required by `std::cmp::PartialOrd::partial_cmp`
63   --> $SRC_DIR/core/src/cmp.rs:LL:COL
64    |
65 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
66    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
67    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
68
69 error[E0277]: can't compare `std::ops::RangeInclusive<usize>` with `std::ops::RangeInclusive<usize>`
70   --> $DIR/range_traits-1.rs:17:5
71    |
72 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
73    |                                ---------- in this derive macro expansion
74 ...
75 LL |     e: RangeInclusive<usize>,
76    |     ^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeInclusive<usize> < std::ops::RangeInclusive<usize>` and `std::ops::RangeInclusive<usize> > std::ops::RangeInclusive<usize>`
77    |
78    = help: the trait `PartialOrd` is not implemented for `std::ops::RangeInclusive<usize>`
79 note: required by `std::cmp::PartialOrd::partial_cmp`
80   --> $SRC_DIR/core/src/cmp.rs:LL:COL
81    |
82 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
83    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
85
86 error[E0277]: can't compare `std::ops::RangeToInclusive<usize>` with `std::ops::RangeToInclusive<usize>`
87   --> $DIR/range_traits-1.rs:20:5
88    |
89 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
90    |                                ---------- in this derive macro expansion
91 ...
92 LL |     f: RangeToInclusive<usize>,
93    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `std::ops::RangeToInclusive<usize> < std::ops::RangeToInclusive<usize>` and `std::ops::RangeToInclusive<usize> > std::ops::RangeToInclusive<usize>`
94    |
95    = help: the trait `PartialOrd` is not implemented for `std::ops::RangeToInclusive<usize>`
96 note: required by `std::cmp::PartialOrd::partial_cmp`
97   --> $SRC_DIR/core/src/cmp.rs:LL:COL
98    |
99 LL |     fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>;
100    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
101    = note: this error originates in the derive macro `PartialOrd` (in Nightly builds, run with -Z macro-backtrace for more info)
102
103 error[E0277]: the trait bound `std::ops::Range<usize>: Ord` is not satisfied
104   --> $DIR/range_traits-1.rs:5:5
105    |
106 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
107    |                                            --- in this derive macro expansion
108 LL | struct AllTheRanges {
109 LL |     a: Range<usize>,
110    |     ^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::Range<usize>`
111    |
112 note: required by `std::cmp::Ord::cmp`
113   --> $SRC_DIR/core/src/cmp.rs:LL:COL
114    |
115 LL |     fn cmp(&self, other: &Self) -> Ordering;
116    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
118
119 error[E0277]: the trait bound `std::ops::RangeTo<usize>: Ord` is not satisfied
120   --> $DIR/range_traits-1.rs:8:5
121    |
122 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
123    |                                            --- in this derive macro expansion
124 ...
125 LL |     b: RangeTo<usize>,
126    |     ^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeTo<usize>`
127    |
128 note: required by `std::cmp::Ord::cmp`
129   --> $SRC_DIR/core/src/cmp.rs:LL:COL
130    |
131 LL |     fn cmp(&self, other: &Self) -> Ordering;
132    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
134
135 error[E0277]: the trait bound `std::ops::RangeFrom<usize>: Ord` is not satisfied
136   --> $DIR/range_traits-1.rs:11:5
137    |
138 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
139    |                                            --- in this derive macro expansion
140 ...
141 LL |     c: RangeFrom<usize>,
142    |     ^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFrom<usize>`
143    |
144 note: required by `std::cmp::Ord::cmp`
145   --> $SRC_DIR/core/src/cmp.rs:LL:COL
146    |
147 LL |     fn cmp(&self, other: &Self) -> Ordering;
148    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
149    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
150
151 error[E0277]: the trait bound `std::ops::RangeFull: Ord` is not satisfied
152   --> $DIR/range_traits-1.rs:14:5
153    |
154 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
155    |                                            --- in this derive macro expansion
156 ...
157 LL |     d: RangeFull,
158    |     ^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeFull`
159    |
160 note: required by `std::cmp::Ord::cmp`
161   --> $SRC_DIR/core/src/cmp.rs:LL:COL
162    |
163 LL |     fn cmp(&self, other: &Self) -> Ordering;
164    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
166
167 error[E0277]: the trait bound `std::ops::RangeInclusive<usize>: Ord` is not satisfied
168   --> $DIR/range_traits-1.rs:17:5
169    |
170 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
171    |                                            --- in this derive macro expansion
172 ...
173 LL |     e: RangeInclusive<usize>,
174    |     ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeInclusive<usize>`
175    |
176 note: required by `std::cmp::Ord::cmp`
177   --> $SRC_DIR/core/src/cmp.rs:LL:COL
178    |
179 LL |     fn cmp(&self, other: &Self) -> Ordering;
180    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
181    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
182
183 error[E0277]: the trait bound `std::ops::RangeToInclusive<usize>: Ord` is not satisfied
184   --> $DIR/range_traits-1.rs:20:5
185    |
186 LL | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
187    |                                            --- in this derive macro expansion
188 ...
189 LL |     f: RangeToInclusive<usize>,
190    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Ord` is not implemented for `std::ops::RangeToInclusive<usize>`
191    |
192 note: required by `std::cmp::Ord::cmp`
193   --> $SRC_DIR/core/src/cmp.rs:LL:COL
194    |
195 LL |     fn cmp(&self, other: &Self) -> Ordering;
196    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197    = note: this error originates in the derive macro `Ord` (in Nightly builds, run with -Z macro-backtrace for more info)
198
199 error: aborting due to 12 previous errors
200
201 For more information about this error, try `rustc --explain E0277`.