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