1 error[E0369]: cannot add `A` to `A`
2 --> $DIR/issue-28837.rs:6:7
9 note: an implementation of `Add<_>` might be missing for `A`
10 --> $DIR/issue-28837.rs:1:1
13 | ^^^^^^^^^ must implement `Add<_>`
14 note: the following trait must be implemented
15 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
17 LL | / pub trait Add<Rhs = Self> {
18 LL | | /// The resulting type after applying the `+` operator.
19 LL | | #[stable(feature = "rust1", since = "1.0.0")]
22 LL | | fn add(self, rhs: Rhs) -> Self::Output;
26 error[E0369]: cannot subtract `A` from `A`
27 --> $DIR/issue-28837.rs:8:7
34 note: an implementation of `Sub<_>` might be missing for `A`
35 --> $DIR/issue-28837.rs:1:1
38 | ^^^^^^^^^ must implement `Sub<_>`
39 note: the following trait must be implemented
40 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
42 LL | / pub trait Sub<Rhs = Self> {
43 LL | | /// The resulting type after applying the `-` operator.
44 LL | | #[stable(feature = "rust1", since = "1.0.0")]
47 LL | | fn sub(self, rhs: Rhs) -> Self::Output;
51 error[E0369]: cannot multiply `A` by `A`
52 --> $DIR/issue-28837.rs:10:7
59 note: an implementation of `Mul<_>` might be missing for `A`
60 --> $DIR/issue-28837.rs:1:1
63 | ^^^^^^^^^ must implement `Mul<_>`
64 note: the following trait must be implemented
65 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
67 LL | / pub trait Mul<Rhs = Self> {
68 LL | | /// The resulting type after applying the `*` operator.
69 LL | | #[stable(feature = "rust1", since = "1.0.0")]
72 LL | | fn mul(self, rhs: Rhs) -> Self::Output;
76 error[E0369]: cannot divide `A` by `A`
77 --> $DIR/issue-28837.rs:12:7
84 note: an implementation of `Div<_>` might be missing for `A`
85 --> $DIR/issue-28837.rs:1:1
88 | ^^^^^^^^^ must implement `Div<_>`
89 note: the following trait must be implemented
90 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
92 LL | / pub trait Div<Rhs = Self> {
93 LL | | /// The resulting type after applying the `/` operator.
94 LL | | #[stable(feature = "rust1", since = "1.0.0")]
97 LL | | fn div(self, rhs: Rhs) -> Self::Output;
101 error[E0369]: cannot mod `A` by `A`
102 --> $DIR/issue-28837.rs:14:7
109 note: an implementation of `Rem<_>` might be missing for `A`
110 --> $DIR/issue-28837.rs:1:1
113 | ^^^^^^^^^ must implement `Rem<_>`
114 note: the following trait must be implemented
115 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
117 LL | / pub trait Rem<Rhs = Self> {
118 LL | | /// The resulting type after applying the `%` operator.
119 LL | | #[stable(feature = "rust1", since = "1.0.0")]
122 LL | | fn rem(self, rhs: Rhs) -> Self::Output;
126 error[E0369]: no implementation for `A & A`
127 --> $DIR/issue-28837.rs:16:7
134 note: an implementation of `BitAnd<_>` might be missing for `A`
135 --> $DIR/issue-28837.rs:1:1
138 | ^^^^^^^^^ must implement `BitAnd<_>`
139 note: the following trait must be implemented
140 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
142 LL | / pub trait BitAnd<Rhs = Self> {
143 LL | | /// The resulting type after applying the `&` operator.
144 LL | | #[stable(feature = "rust1", since = "1.0.0")]
147 LL | | fn bitand(self, rhs: Rhs) -> Self::Output;
151 error[E0369]: no implementation for `A | A`
152 --> $DIR/issue-28837.rs:18:7
159 note: an implementation of `BitOr<_>` might be missing for `A`
160 --> $DIR/issue-28837.rs:1:1
163 | ^^^^^^^^^ must implement `BitOr<_>`
164 note: the following trait must be implemented
165 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
167 LL | / pub trait BitOr<Rhs = Self> {
168 LL | | /// The resulting type after applying the `|` operator.
169 LL | | #[stable(feature = "rust1", since = "1.0.0")]
172 LL | | fn bitor(self, rhs: Rhs) -> Self::Output;
176 error[E0369]: no implementation for `A << A`
177 --> $DIR/issue-28837.rs:20:7
184 note: an implementation of `Shl<_>` might be missing for `A`
185 --> $DIR/issue-28837.rs:1:1
188 | ^^^^^^^^^ must implement `Shl<_>`
189 note: the following trait must be implemented
190 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
192 LL | / pub trait Shl<Rhs = Self> {
193 LL | | /// The resulting type after applying the `<<` operator.
194 LL | | #[stable(feature = "rust1", since = "1.0.0")]
197 LL | | fn shl(self, rhs: Rhs) -> Self::Output;
201 error[E0369]: no implementation for `A >> A`
202 --> $DIR/issue-28837.rs:22:7
209 note: an implementation of `Shr<_>` might be missing for `A`
210 --> $DIR/issue-28837.rs:1:1
213 | ^^^^^^^^^ must implement `Shr<_>`
214 note: the following trait must be implemented
215 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
217 LL | / pub trait Shr<Rhs = Self> {
218 LL | | /// The resulting type after applying the `>>` operator.
219 LL | | #[stable(feature = "rust1", since = "1.0.0")]
222 LL | | fn shr(self, rhs: Rhs) -> Self::Output;
226 error[E0369]: binary operation `==` cannot be applied to type `A`
227 --> $DIR/issue-28837.rs:24:7
234 note: an implementation of `PartialEq<_>` might be missing for `A`
235 --> $DIR/issue-28837.rs:1:1
238 | ^^^^^^^^^ must implement `PartialEq<_>`
239 help: consider annotating `A` with `#[derive(PartialEq)]`
241 LL | #[derive(PartialEq)]
244 error[E0369]: binary operation `!=` cannot be applied to type `A`
245 --> $DIR/issue-28837.rs:26:7
252 note: an implementation of `PartialEq<_>` might be missing for `A`
253 --> $DIR/issue-28837.rs:1:1
256 | ^^^^^^^^^ must implement `PartialEq<_>`
257 help: consider annotating `A` with `#[derive(PartialEq)]`
259 LL | #[derive(PartialEq)]
262 error[E0369]: binary operation `<` cannot be applied to type `A`
263 --> $DIR/issue-28837.rs:28:7
270 note: an implementation of `PartialOrd<_>` might be missing for `A`
271 --> $DIR/issue-28837.rs:1:1
274 | ^^^^^^^^^ must implement `PartialOrd<_>`
275 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
277 LL | #[derive(PartialEq, PartialOrd)]
280 error[E0369]: binary operation `<=` cannot be applied to type `A`
281 --> $DIR/issue-28837.rs:30:7
288 note: an implementation of `PartialOrd<_>` might be missing for `A`
289 --> $DIR/issue-28837.rs:1:1
292 | ^^^^^^^^^ must implement `PartialOrd<_>`
293 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
295 LL | #[derive(PartialEq, PartialOrd)]
298 error[E0369]: binary operation `>` cannot be applied to type `A`
299 --> $DIR/issue-28837.rs:32:7
306 note: an implementation of `PartialOrd<_>` might be missing for `A`
307 --> $DIR/issue-28837.rs:1:1
310 | ^^^^^^^^^ must implement `PartialOrd<_>`
311 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
313 LL | #[derive(PartialEq, PartialOrd)]
316 error[E0369]: binary operation `>=` cannot be applied to type `A`
317 --> $DIR/issue-28837.rs:34:7
324 note: an implementation of `PartialOrd<_>` might be missing for `A`
325 --> $DIR/issue-28837.rs:1:1
328 | ^^^^^^^^^ must implement `PartialOrd<_>`
329 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
331 LL | #[derive(PartialEq, PartialOrd)]
334 error: aborting due to 15 previous errors
336 For more information about this error, try `rustc --explain E0369`.