1- error[E0369]: binary operation `+` cannot be applied to type `A`
1+ error[E0369]: cannot add `A` to `A`
22 --> $DIR/issue-28837.rs:6:7
33 |
44LL | a + a;
@@ -8,7 +8,7 @@ LL | a + a;
88 |
99 = note: an implementation of `std::ops::Add` might be missing for `A`
1010
11- error[E0369]: binary operation `-` cannot be applied to type `A`
11+ error[E0369]: cannot substract `A` from `A`
1212 --> $DIR/issue-28837.rs:8:7
1313 |
1414LL | a - a;
@@ -18,7 +18,7 @@ LL | a - a;
1818 |
1919 = note: an implementation of `std::ops::Sub` might be missing for `A`
2020
21- error[E0369]: binary operation `*` cannot be applied to type `A`
21+ error[E0369]: cannot multiply `A` to `A`
2222 --> $DIR/issue-28837.rs:10:7
2323 |
2424LL | a * a;
@@ -28,7 +28,7 @@ LL | a * a;
2828 |
2929 = note: an implementation of `std::ops::Mul` might be missing for `A`
3030
31- error[E0369]: binary operation `/` cannot be applied to type `A`
31+ error[E0369]: cannot divide `A` by `A`
3232 --> $DIR/issue-28837.rs:12:7
3333 |
3434LL | a / a;
@@ -38,7 +38,7 @@ LL | a / a;
3838 |
3939 = note: an implementation of `std::ops::Div` might be missing for `A`
4040
41- error[E0369]: binary operation `%` cannot be applied to type `A`
41+ error[E0369]: cannot mod `A` by `A`
4242 --> $DIR/issue-28837.rs:14:7
4343 |
4444LL | a % a;
@@ -48,7 +48,7 @@ LL | a % a;
4848 |
4949 = note: an implementation of `std::ops::Rem` might be missing for `A`
5050
51- error[E0369]: binary operation `&` cannot be applied to type ` A`
51+ error[E0369]: no implementation for `A & A`
5252 --> $DIR/issue-28837.rs:16:7
5353 |
5454LL | a & a;
@@ -58,7 +58,7 @@ LL | a & a;
5858 |
5959 = note: an implementation of `std::ops::BitAnd` might be missing for `A`
6060
61- error[E0369]: binary operation `|` cannot be applied to type ` A`
61+ error[E0369]: no implementation for `A | A`
6262 --> $DIR/issue-28837.rs:18:7
6363 |
6464LL | a | a;
@@ -68,7 +68,7 @@ LL | a | a;
6868 |
6969 = note: an implementation of `std::ops::BitOr` might be missing for `A`
7070
71- error[E0369]: binary operation `<<` cannot be applied to type `A`
71+ error[E0369]: no implementation for `A << A
7272 --> $DIR/issue-28837.rs:20:7
7373 |
7474LL | a << a;
@@ -78,7 +78,7 @@ LL | a << a;
7878 |
7979 = note: an implementation of `std::ops::Shl` might be missing for `A`
8080
81- error[E0369]: binary operation `>>` cannot be applied to type `A`
81+ error[E0369]: no implementation for `A >> A
8282 --> $DIR/issue-28837.rs:22:7
8383 |
8484LL | a >> a;
0 commit comments