2019-12-10 21:03:13 +00:00
|
|
|
error[E0369]: cannot add `A` to `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:6:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a + a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Add<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Add<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Add` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2020-01-08 21:49:15 +00:00
|
|
|
error[E0369]: cannot subtract `A` from `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:8:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a - a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Sub<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Sub<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Sub` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2020-10-18 02:59:51 +00:00
|
|
|
error[E0369]: cannot multiply `A` by `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:10:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a * a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Mul<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Mul<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Mul` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-12-10 21:03:13 +00:00
|
|
|
error[E0369]: cannot divide `A` by `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:12:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a / a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Div<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Div<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Div` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2023-01-30 19:54:33 +00:00
|
|
|
error[E0369]: cannot calculate the remainder of `A` divided by `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:14:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a % a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Rem<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Rem<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Rem` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/arith.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-12-10 21:03:13 +00:00
|
|
|
error[E0369]: no implementation for `A & A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:16:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a & a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `BitAnd<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `BitAnd<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `BitAnd` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-12-10 21:03:13 +00:00
|
|
|
error[E0369]: no implementation for `A | A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:18:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a | a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `BitOr<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `BitOr<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `BitOr` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-12-12 19:55:00 +00:00
|
|
|
error[E0369]: no implementation for `A << A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:20:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a << a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Shl<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Shl<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Shl` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2019-12-12 19:55:00 +00:00
|
|
|
error[E0369]: no implementation for `A >> A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:22:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a >> a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `Shr<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `Shr<_>`
|
2022-12-12 11:55:46 +00:00
|
|
|
note: the trait `Shr` must be implemented
|
2021-09-28 14:48:54 +00:00
|
|
|
--> $SRC_DIR/core/src/ops/bit.rs:LL:COL
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `==` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:24:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a == a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialEq<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialEq<_>`
|
2021-09-28 14:48:54 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq)]`
|
|
|
|
|
|
|
|
|
LL | #[derive(PartialEq)]
|
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `!=` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:26:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a != a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialEq<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialEq<_>`
|
2021-09-28 14:48:54 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq)]`
|
|
|
|
|
|
|
|
|
LL | #[derive(PartialEq)]
|
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `<` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:28:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a < a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialOrd<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialOrd<_>`
|
2022-02-12 06:43:21 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2022-02-12 06:43:21 +00:00
|
|
|
LL | #[derive(PartialEq, PartialOrd)]
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `<=` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:30:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a <= a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialOrd<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialOrd<_>`
|
2022-02-12 06:43:21 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2022-02-12 06:43:21 +00:00
|
|
|
LL | #[derive(PartialEq, PartialOrd)]
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `>` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:32:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a > a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialOrd<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialOrd<_>`
|
2022-02-12 06:43:21 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2022-02-12 06:43:21 +00:00
|
|
|
LL | #[derive(PartialEq, PartialOrd)]
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error[E0369]: binary operation `>=` cannot be applied to type `A`
|
2019-03-27 17:13:09 +00:00
|
|
|
--> $DIR/issue-28837.rs:34:7
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | a >= a;
|
2019-03-27 17:13:09 +00:00
|
|
|
| - ^^ - A
|
|
|
|
| |
|
|
|
|
| A
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2021-09-28 14:48:54 +00:00
|
|
|
note: an implementation of `PartialOrd<_>` might be missing for `A`
|
|
|
|
--> $DIR/issue-28837.rs:1:1
|
|
|
|
|
|
|
|
|
LL | struct A;
|
2022-02-13 15:27:59 +00:00
|
|
|
| ^^^^^^^^ must implement `PartialOrd<_>`
|
2022-02-12 06:43:21 +00:00
|
|
|
help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2022-02-12 06:43:21 +00:00
|
|
|
LL | #[derive(PartialEq, PartialOrd)]
|
2021-09-28 14:48:54 +00:00
|
|
|
|
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
|
|
error: aborting due to 15 previous errors
|
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0369`.
|