summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/issue-28837.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binop/issue-28837.stderr')
-rw-r--r--src/test/ui/binop/issue-28837.stderr282
1 files changed, 282 insertions, 0 deletions
diff --git a/src/test/ui/binop/issue-28837.stderr b/src/test/ui/binop/issue-28837.stderr
new file mode 100644
index 000000000..b9c7e1bea
--- /dev/null
+++ b/src/test/ui/binop/issue-28837.stderr
@@ -0,0 +1,282 @@
+error[E0369]: cannot add `A` to `A`
+ --> $DIR/issue-28837.rs:6:7
+ |
+LL | a + a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `Add<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Add<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
+ |
+LL | pub trait Add<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: cannot subtract `A` from `A`
+ --> $DIR/issue-28837.rs:8:7
+ |
+LL | a - a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `Sub<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Sub<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
+ |
+LL | pub trait Sub<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: cannot multiply `A` by `A`
+ --> $DIR/issue-28837.rs:10:7
+ |
+LL | a * a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `Mul<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Mul<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
+ |
+LL | pub trait Mul<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: cannot divide `A` by `A`
+ --> $DIR/issue-28837.rs:12:7
+ |
+LL | a / a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `Div<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Div<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
+ |
+LL | pub trait Div<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: cannot mod `A` by `A`
+ --> $DIR/issue-28837.rs:14:7
+ |
+LL | a % a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `Rem<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Rem<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/arith.rs:LL:COL
+ |
+LL | pub trait Rem<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: no implementation for `A & A`
+ --> $DIR/issue-28837.rs:16:7
+ |
+LL | a & a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `BitAnd<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `BitAnd<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
+ |
+LL | pub trait BitAnd<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: no implementation for `A | A`
+ --> $DIR/issue-28837.rs:18:7
+ |
+LL | a | a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `BitOr<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `BitOr<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
+ |
+LL | pub trait BitOr<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: no implementation for `A << A`
+ --> $DIR/issue-28837.rs:20:7
+ |
+LL | a << a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `Shl<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Shl<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
+ |
+LL | pub trait Shl<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: no implementation for `A >> A`
+ --> $DIR/issue-28837.rs:22:7
+ |
+LL | a >> a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `Shr<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `Shr<_>`
+note: the following trait must be implemented
+ --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
+ |
+LL | pub trait Shr<Rhs = Self> {
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+
+error[E0369]: binary operation `==` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:24:7
+ |
+LL | a == a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialEq<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialEq<_>`
+help: consider annotating `A` with `#[derive(PartialEq)]`
+ |
+LL | #[derive(PartialEq)]
+ |
+
+error[E0369]: binary operation `!=` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:26:7
+ |
+LL | a != a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialEq<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialEq<_>`
+help: consider annotating `A` with `#[derive(PartialEq)]`
+ |
+LL | #[derive(PartialEq)]
+ |
+
+error[E0369]: binary operation `<` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:28:7
+ |
+LL | a < a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialOrd<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialOrd<_>`
+help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
+ |
+LL | #[derive(PartialEq, PartialOrd)]
+ |
+
+error[E0369]: binary operation `<=` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:30:7
+ |
+LL | a <= a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialOrd<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialOrd<_>`
+help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
+ |
+LL | #[derive(PartialEq, PartialOrd)]
+ |
+
+error[E0369]: binary operation `>` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:32:7
+ |
+LL | a > a;
+ | - ^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialOrd<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialOrd<_>`
+help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
+ |
+LL | #[derive(PartialEq, PartialOrd)]
+ |
+
+error[E0369]: binary operation `>=` cannot be applied to type `A`
+ --> $DIR/issue-28837.rs:34:7
+ |
+LL | a >= a;
+ | - ^^ - A
+ | |
+ | A
+ |
+note: an implementation of `PartialOrd<_>` might be missing for `A`
+ --> $DIR/issue-28837.rs:1:1
+ |
+LL | struct A;
+ | ^^^^^^^^ must implement `PartialOrd<_>`
+help: consider annotating `A` with `#[derive(PartialEq, PartialOrd)]`
+ |
+LL | #[derive(PartialEq, PartialOrd)]
+ |
+
+error: aborting due to 15 previous errors
+
+For more information about this error, try `rustc --explain E0369`.