1 error[E0369]: binary operation `+` cannot be applied to type `A`
2 --> $DIR/issue-28837.rs:16:5
4 LL | a + a; //~ ERROR binary operation `+` cannot be applied to type `A`
7 = note: an implementation of `std::ops::Add` might be missing for `A`
9 error[E0369]: binary operation `-` cannot be applied to type `A`
10 --> $DIR/issue-28837.rs:18:5
12 LL | a - a; //~ ERROR binary operation `-` cannot be applied to type `A`
15 = note: an implementation of `std::ops::Sub` might be missing for `A`
17 error[E0369]: binary operation `*` cannot be applied to type `A`
18 --> $DIR/issue-28837.rs:20:5
20 LL | a * a; //~ ERROR binary operation `*` cannot be applied to type `A`
23 = note: an implementation of `std::ops::Mul` might be missing for `A`
25 error[E0369]: binary operation `/` cannot be applied to type `A`
26 --> $DIR/issue-28837.rs:22:5
28 LL | a / a; //~ ERROR binary operation `/` cannot be applied to type `A`
31 = note: an implementation of `std::ops::Div` might be missing for `A`
33 error[E0369]: binary operation `%` cannot be applied to type `A`
34 --> $DIR/issue-28837.rs:24:5
36 LL | a % a; //~ ERROR binary operation `%` cannot be applied to type `A`
39 = note: an implementation of `std::ops::Rem` might be missing for `A`
41 error[E0369]: binary operation `&` cannot be applied to type `A`
42 --> $DIR/issue-28837.rs:26:5
44 LL | a & a; //~ ERROR binary operation `&` cannot be applied to type `A`
47 = note: an implementation of `std::ops::BitAnd` might be missing for `A`
49 error[E0369]: binary operation `|` cannot be applied to type `A`
50 --> $DIR/issue-28837.rs:28:5
52 LL | a | a; //~ ERROR binary operation `|` cannot be applied to type `A`
55 = note: an implementation of `std::ops::BitOr` might be missing for `A`
57 error[E0369]: binary operation `<<` cannot be applied to type `A`
58 --> $DIR/issue-28837.rs:30:5
60 LL | a << a; //~ ERROR binary operation `<<` cannot be applied to type `A`
63 = note: an implementation of `std::ops::Shl` might be missing for `A`
65 error[E0369]: binary operation `>>` cannot be applied to type `A`
66 --> $DIR/issue-28837.rs:32:5
68 LL | a >> a; //~ ERROR binary operation `>>` cannot be applied to type `A`
71 = note: an implementation of `std::ops::Shr` might be missing for `A`
73 error[E0369]: binary operation `==` cannot be applied to type `A`
74 --> $DIR/issue-28837.rs:34:5
76 LL | a == a; //~ ERROR binary operation `==` cannot be applied to type `A`
79 = note: an implementation of `std::cmp::PartialEq` might be missing for `A`
81 error[E0369]: binary operation `!=` cannot be applied to type `A`
82 --> $DIR/issue-28837.rs:36:5
84 LL | a != a; //~ ERROR binary operation `!=` cannot be applied to type `A`
87 = note: an implementation of `std::cmp::PartialEq` might be missing for `A`
89 error[E0369]: binary operation `<` cannot be applied to type `A`
90 --> $DIR/issue-28837.rs:38:5
92 LL | a < a; //~ ERROR binary operation `<` cannot be applied to type `A`
95 = note: an implementation of `std::cmp::PartialOrd` might be missing for `A`
97 error[E0369]: binary operation `<=` cannot be applied to type `A`
98 --> $DIR/issue-28837.rs:40:5
100 LL | a <= a; //~ ERROR binary operation `<=` cannot be applied to type `A`
103 = note: an implementation of `std::cmp::PartialOrd` might be missing for `A`
105 error[E0369]: binary operation `>` cannot be applied to type `A`
106 --> $DIR/issue-28837.rs:42:5
108 LL | a > a; //~ ERROR binary operation `>` cannot be applied to type `A`
111 = note: an implementation of `std::cmp::PartialOrd` might be missing for `A`
113 error[E0369]: binary operation `>=` cannot be applied to type `A`
114 --> $DIR/issue-28837.rs:44:5
116 LL | a >= a; //~ ERROR binary operation `>=` cannot be applied to type `A`
119 = note: an implementation of `std::cmp::PartialOrd` might be missing for `A`
121 error: aborting due to 15 previous errors
123 For more information about this error, try `rustc --explain E0369`.