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 | ^^^^^^^^^^^^^^^^^^^^^^^^^
20 error[E0369]: cannot subtract `A` from `A`
21 --> $DIR/issue-28837.rs:8:7
28 note: an implementation of `Sub<_>` might be missing for `A`
29 --> $DIR/issue-28837.rs:1:1
32 | ^^^^^^^^ must implement `Sub<_>`
33 note: the following trait must be implemented
34 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
36 LL | pub trait Sub<Rhs = Self> {
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^
39 error[E0369]: cannot multiply `A` by `A`
40 --> $DIR/issue-28837.rs:10:7
47 note: an implementation of `Mul<_>` might be missing for `A`
48 --> $DIR/issue-28837.rs:1:1
51 | ^^^^^^^^ must implement `Mul<_>`
52 note: the following trait must be implemented
53 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
55 LL | pub trait Mul<Rhs = Self> {
56 | ^^^^^^^^^^^^^^^^^^^^^^^^^
58 error[E0369]: cannot divide `A` by `A`
59 --> $DIR/issue-28837.rs:12:7
66 note: an implementation of `Div<_>` might be missing for `A`
67 --> $DIR/issue-28837.rs:1:1
70 | ^^^^^^^^ must implement `Div<_>`
71 note: the following trait must be implemented
72 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
74 LL | pub trait Div<Rhs = Self> {
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^
77 error[E0369]: cannot mod `A` by `A`
78 --> $DIR/issue-28837.rs:14:7
85 note: an implementation of `Rem<_>` might be missing for `A`
86 --> $DIR/issue-28837.rs:1:1
89 | ^^^^^^^^ must implement `Rem<_>`
90 note: the following trait must be implemented
91 --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
93 LL | pub trait Rem<Rhs = Self> {
94 | ^^^^^^^^^^^^^^^^^^^^^^^^^
96 error[E0369]: no implementation for `A & A`
97 --> $DIR/issue-28837.rs:16:7
104 note: an implementation of `BitAnd<_>` might be missing for `A`
105 --> $DIR/issue-28837.rs:1:1
108 | ^^^^^^^^ must implement `BitAnd<_>`
109 note: the following trait must be implemented
110 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
112 LL | pub trait BitAnd<Rhs = Self> {
113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115 error[E0369]: no implementation for `A | A`
116 --> $DIR/issue-28837.rs:18:7
123 note: an implementation of `BitOr<_>` might be missing for `A`
124 --> $DIR/issue-28837.rs:1:1
127 | ^^^^^^^^ must implement `BitOr<_>`
128 note: the following trait must be implemented
129 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
131 LL | pub trait BitOr<Rhs = Self> {
132 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
134 error[E0369]: no implementation for `A << A`
135 --> $DIR/issue-28837.rs:20:7
142 note: an implementation of `Shl<_>` might be missing for `A`
143 --> $DIR/issue-28837.rs:1:1
146 | ^^^^^^^^ must implement `Shl<_>`
147 note: the following trait must be implemented
148 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
150 LL | pub trait Shl<Rhs = Self> {
151 | ^^^^^^^^^^^^^^^^^^^^^^^^^
153 error[E0369]: no implementation for `A >> A`
154 --> $DIR/issue-28837.rs:22:7
161 note: an implementation of `Shr<_>` might be missing for `A`
162 --> $DIR/issue-28837.rs:1:1
165 | ^^^^^^^^ must implement `Shr<_>`
166 note: the following trait must be implemented
167 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
169 LL | pub trait Shr<Rhs = Self> {
170 | ^^^^^^^^^^^^^^^^^^^^^^^^^
172 error[E0369]: binary operation `==` cannot be applied to type `A`
173 --> $DIR/issue-28837.rs:24:7
180 note: an implementation of `PartialEq<_>` might be missing for `A`
181 --> $DIR/issue-28837.rs:1:1
184 | ^^^^^^^^ must implement `PartialEq<_>`
185 help: consider annotating `A` with `#[derive(PartialEq)]`
187 LL | #[derive(PartialEq)]
190 error[E0369]: binary operation `!=` cannot be applied to type `A`
191 --> $DIR/issue-28837.rs:26:7
198 note: an implementation of `PartialEq<_>` might be missing for `A`
199 --> $DIR/issue-28837.rs:1:1
202 | ^^^^^^^^ must implement `PartialEq<_>`
203 help: consider annotating `A` with `#[derive(PartialEq)]`
205 LL | #[derive(PartialEq)]
208 error[E0369]: binary operation `<` cannot be applied to type `A`
209 --> $DIR/issue-28837.rs:28:7
216 note: an implementation of `PartialOrd<_>` might be missing for `A`
217 --> $DIR/issue-28837.rs:1:1
220 | ^^^^^^^^ must implement `PartialOrd<_>`
221 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
223 LL | #[derive(PartialEq, PartialOrd)]
226 error[E0369]: binary operation `<=` cannot be applied to type `A`
227 --> $DIR/issue-28837.rs:30:7
234 note: an implementation of `PartialOrd<_>` might be missing for `A`
235 --> $DIR/issue-28837.rs:1:1
238 | ^^^^^^^^ must implement `PartialOrd<_>`
239 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
241 LL | #[derive(PartialEq, PartialOrd)]
244 error[E0369]: binary operation `>` cannot be applied to type `A`
245 --> $DIR/issue-28837.rs:32:7
252 note: an implementation of `PartialOrd<_>` might be missing for `A`
253 --> $DIR/issue-28837.rs:1:1
256 | ^^^^^^^^ must implement `PartialOrd<_>`
257 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
259 LL | #[derive(PartialEq, PartialOrd)]
262 error[E0369]: binary operation `>=` cannot be applied to type `A`
263 --> $DIR/issue-28837.rs:34: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: aborting due to 15 previous errors
282 For more information about this error, try `rustc --explain E0369`.