]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binop/issue-28837.stderr
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / binop / issue-28837.stderr
1 error[E0369]: cannot add `A` to `A`
2   --> $DIR/issue-28837.rs:6:7
3    |
4 LL |     a + a;
5    |     - ^ - A
6    |     |
7    |     A
8    |
9 note: an implementation of `Add<_>` might be missing for `A`
10   --> $DIR/issue-28837.rs:1:1
11    |
12 LL | struct A;
13    | ^^^^^^^^ must implement `Add<_>`
14 note: the following trait must be implemented
15   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
16    |
17 LL | pub trait Add<Rhs = Self> {
18    | ^^^^^^^^^^^^^^^^^^^^^^^^^
19
20 error[E0369]: cannot subtract `A` from `A`
21   --> $DIR/issue-28837.rs:8:7
22    |
23 LL |     a - a;
24    |     - ^ - A
25    |     |
26    |     A
27    |
28 note: an implementation of `Sub<_>` might be missing for `A`
29   --> $DIR/issue-28837.rs:1:1
30    |
31 LL | struct A;
32    | ^^^^^^^^ must implement `Sub<_>`
33 note: the following trait must be implemented
34   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
35    |
36 LL | pub trait Sub<Rhs = Self> {
37    | ^^^^^^^^^^^^^^^^^^^^^^^^^
38
39 error[E0369]: cannot multiply `A` by `A`
40   --> $DIR/issue-28837.rs:10:7
41    |
42 LL |     a * a;
43    |     - ^ - A
44    |     |
45    |     A
46    |
47 note: an implementation of `Mul<_>` might be missing for `A`
48   --> $DIR/issue-28837.rs:1:1
49    |
50 LL | struct A;
51    | ^^^^^^^^ must implement `Mul<_>`
52 note: the following trait must be implemented
53   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
54    |
55 LL | pub trait Mul<Rhs = Self> {
56    | ^^^^^^^^^^^^^^^^^^^^^^^^^
57
58 error[E0369]: cannot divide `A` by `A`
59   --> $DIR/issue-28837.rs:12:7
60    |
61 LL |     a / a;
62    |     - ^ - A
63    |     |
64    |     A
65    |
66 note: an implementation of `Div<_>` might be missing for `A`
67   --> $DIR/issue-28837.rs:1:1
68    |
69 LL | struct A;
70    | ^^^^^^^^ must implement `Div<_>`
71 note: the following trait must be implemented
72   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
73    |
74 LL | pub trait Div<Rhs = Self> {
75    | ^^^^^^^^^^^^^^^^^^^^^^^^^
76
77 error[E0369]: cannot mod `A` by `A`
78   --> $DIR/issue-28837.rs:14:7
79    |
80 LL |     a % a;
81    |     - ^ - A
82    |     |
83    |     A
84    |
85 note: an implementation of `Rem<_>` might be missing for `A`
86   --> $DIR/issue-28837.rs:1:1
87    |
88 LL | struct A;
89    | ^^^^^^^^ must implement `Rem<_>`
90 note: the following trait must be implemented
91   --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
92    |
93 LL | pub trait Rem<Rhs = Self> {
94    | ^^^^^^^^^^^^^^^^^^^^^^^^^
95
96 error[E0369]: no implementation for `A & A`
97   --> $DIR/issue-28837.rs:16:7
98    |
99 LL |     a & a;
100    |     - ^ - A
101    |     |
102    |     A
103    |
104 note: an implementation of `BitAnd<_>` might be missing for `A`
105   --> $DIR/issue-28837.rs:1:1
106    |
107 LL | struct A;
108    | ^^^^^^^^ must implement `BitAnd<_>`
109 note: the following trait must be implemented
110   --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
111    |
112 LL | pub trait BitAnd<Rhs = Self> {
113    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
115 error[E0369]: no implementation for `A | A`
116   --> $DIR/issue-28837.rs:18:7
117    |
118 LL |     a | a;
119    |     - ^ - A
120    |     |
121    |     A
122    |
123 note: an implementation of `BitOr<_>` might be missing for `A`
124   --> $DIR/issue-28837.rs:1:1
125    |
126 LL | struct A;
127    | ^^^^^^^^ must implement `BitOr<_>`
128 note: the following trait must be implemented
129   --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
130    |
131 LL | pub trait BitOr<Rhs = Self> {
132    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
133
134 error[E0369]: no implementation for `A << A`
135   --> $DIR/issue-28837.rs:20:7
136    |
137 LL |     a << a;
138    |     - ^^ - A
139    |     |
140    |     A
141    |
142 note: an implementation of `Shl<_>` might be missing for `A`
143   --> $DIR/issue-28837.rs:1:1
144    |
145 LL | struct A;
146    | ^^^^^^^^ must implement `Shl<_>`
147 note: the following trait must be implemented
148   --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
149    |
150 LL | pub trait Shl<Rhs = Self> {
151    | ^^^^^^^^^^^^^^^^^^^^^^^^^
152
153 error[E0369]: no implementation for `A >> A`
154   --> $DIR/issue-28837.rs:22:7
155    |
156 LL |     a >> a;
157    |     - ^^ - A
158    |     |
159    |     A
160    |
161 note: an implementation of `Shr<_>` might be missing for `A`
162   --> $DIR/issue-28837.rs:1:1
163    |
164 LL | struct A;
165    | ^^^^^^^^ must implement `Shr<_>`
166 note: the following trait must be implemented
167   --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
168    |
169 LL | pub trait Shr<Rhs = Self> {
170    | ^^^^^^^^^^^^^^^^^^^^^^^^^
171
172 error[E0369]: binary operation `==` cannot be applied to type `A`
173   --> $DIR/issue-28837.rs:24:7
174    |
175 LL |     a == a;
176    |     - ^^ - A
177    |     |
178    |     A
179    |
180 note: an implementation of `PartialEq<_>` might be missing for `A`
181   --> $DIR/issue-28837.rs:1:1
182    |
183 LL | struct A;
184    | ^^^^^^^^ must implement `PartialEq<_>`
185 help: consider annotating `A` with `#[derive(PartialEq)]`
186    |
187 LL | #[derive(PartialEq)]
188    |
189
190 error[E0369]: binary operation `!=` cannot be applied to type `A`
191   --> $DIR/issue-28837.rs:26:7
192    |
193 LL |     a != a;
194    |     - ^^ - A
195    |     |
196    |     A
197    |
198 note: an implementation of `PartialEq<_>` might be missing for `A`
199   --> $DIR/issue-28837.rs:1:1
200    |
201 LL | struct A;
202    | ^^^^^^^^ must implement `PartialEq<_>`
203 help: consider annotating `A` with `#[derive(PartialEq)]`
204    |
205 LL | #[derive(PartialEq)]
206    |
207
208 error[E0369]: binary operation `<` cannot be applied to type `A`
209   --> $DIR/issue-28837.rs:28:7
210    |
211 LL |     a < a;
212    |     - ^ - A
213    |     |
214    |     A
215    |
216 note: an implementation of `PartialOrd<_>` might be missing for `A`
217   --> $DIR/issue-28837.rs:1:1
218    |
219 LL | struct A;
220    | ^^^^^^^^ must implement `PartialOrd<_>`
221 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
222    |
223 LL | #[derive(PartialEq, PartialOrd)]
224    |
225
226 error[E0369]: binary operation `<=` cannot be applied to type `A`
227   --> $DIR/issue-28837.rs:30:7
228    |
229 LL |     a <= a;
230    |     - ^^ - A
231    |     |
232    |     A
233    |
234 note: an implementation of `PartialOrd<_>` might be missing for `A`
235   --> $DIR/issue-28837.rs:1:1
236    |
237 LL | struct A;
238    | ^^^^^^^^ must implement `PartialOrd<_>`
239 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
240    |
241 LL | #[derive(PartialEq, PartialOrd)]
242    |
243
244 error[E0369]: binary operation `>` cannot be applied to type `A`
245   --> $DIR/issue-28837.rs:32:7
246    |
247 LL |     a > a;
248    |     - ^ - A
249    |     |
250    |     A
251    |
252 note: an implementation of `PartialOrd<_>` might be missing for `A`
253   --> $DIR/issue-28837.rs:1:1
254    |
255 LL | struct A;
256    | ^^^^^^^^ must implement `PartialOrd<_>`
257 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
258    |
259 LL | #[derive(PartialEq, PartialOrd)]
260    |
261
262 error[E0369]: binary operation `>=` cannot be applied to type `A`
263   --> $DIR/issue-28837.rs:34:7
264    |
265 LL |     a >= a;
266    |     - ^^ - A
267    |     |
268    |     A
269    |
270 note: an implementation of `PartialOrd<_>` might be missing for `A`
271   --> $DIR/issue-28837.rs:1:1
272    |
273 LL | struct A;
274    | ^^^^^^^^ must implement `PartialOrd<_>`
275 help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
276    |
277 LL | #[derive(PartialEq, PartialOrd)]
278    |
279
280 error: aborting due to 15 previous errors
281
282 For more information about this error, try `rustc --explain E0369`.