1
- error[E0369]: binary operation `+` cannot be applied to type `A`
1
+ error[E0369]: cannot add `A` to `A`
2
2
--> $DIR/issue-28837.rs:6:7
3
3
|
4
4
LL | a + a;
@@ -8,7 +8,7 @@ LL | a + a;
8
8
|
9
9
= note: an implementation of `std::ops::Add` might be missing for `A`
10
10
11
- error[E0369]: binary operation `-` cannot be applied to type `A`
11
+ error[E0369]: cannot substract `A` from `A`
12
12
--> $DIR/issue-28837.rs:8:7
13
13
|
14
14
LL | a - a;
@@ -18,7 +18,7 @@ LL | a - a;
18
18
|
19
19
= note: an implementation of `std::ops::Sub` might be missing for `A`
20
20
21
- error[E0369]: binary operation `*` cannot be applied to type `A`
21
+ error[E0369]: cannot multiply `A` to `A`
22
22
--> $DIR/issue-28837.rs:10:7
23
23
|
24
24
LL | a * a;
@@ -28,7 +28,7 @@ LL | a * a;
28
28
|
29
29
= note: an implementation of `std::ops::Mul` might be missing for `A`
30
30
31
- error[E0369]: binary operation `/` cannot be applied to type `A`
31
+ error[E0369]: cannot divide `A` by `A`
32
32
--> $DIR/issue-28837.rs:12:7
33
33
|
34
34
LL | a / a;
@@ -38,7 +38,7 @@ LL | a / a;
38
38
|
39
39
= note: an implementation of `std::ops::Div` might be missing for `A`
40
40
41
- error[E0369]: binary operation `%` cannot be applied to type `A`
41
+ error[E0369]: cannot mod `A` by `A`
42
42
--> $DIR/issue-28837.rs:14:7
43
43
|
44
44
LL | a % a;
@@ -48,7 +48,7 @@ LL | a % a;
48
48
|
49
49
= note: an implementation of `std::ops::Rem` might be missing for `A`
50
50
51
- error[E0369]: binary operation `&` cannot be applied to type ` A`
51
+ error[E0369]: no implementation for `A & A`
52
52
--> $DIR/issue-28837.rs:16:7
53
53
|
54
54
LL | a & a;
@@ -58,7 +58,7 @@ LL | a & a;
58
58
|
59
59
= note: an implementation of `std::ops::BitAnd` might be missing for `A`
60
60
61
- error[E0369]: binary operation `|` cannot be applied to type ` A`
61
+ error[E0369]: no implementation for `A | A`
62
62
--> $DIR/issue-28837.rs:18:7
63
63
|
64
64
LL | a | a;
@@ -68,7 +68,7 @@ LL | a | a;
68
68
|
69
69
= note: an implementation of `std::ops::BitOr` might be missing for `A`
70
70
71
- error[E0369]: binary operation `<<` cannot be applied to type `A`
71
+ error[E0369]: no implementation for `A << A
72
72
--> $DIR/issue-28837.rs:20:7
73
73
|
74
74
LL | a << a;
@@ -78,7 +78,7 @@ LL | a << a;
78
78
|
79
79
= note: an implementation of `std::ops::Shl` might be missing for `A`
80
80
81
- error[E0369]: binary operation `>>` cannot be applied to type `A`
81
+ error[E0369]: no implementation for `A >> A
82
82
--> $DIR/issue-28837.rs:22:7
83
83
|
84
84
LL | a >> a;
0 commit comments