summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/eq-arr.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/binop/eq-arr.stderr')
-rw-r--r--tests/ui/binop/eq-arr.stderr22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ui/binop/eq-arr.stderr b/tests/ui/binop/eq-arr.stderr
new file mode 100644
index 000000000..a22f8e3ab
--- /dev/null
+++ b/tests/ui/binop/eq-arr.stderr
@@ -0,0 +1,22 @@
+error[E0369]: binary operation `==` cannot be applied to type `[X; 3]`
+ --> $DIR/eq-arr.rs:5:17
+ |
+LL | let eq = xs == [X, X, X];
+ | -- ^^ --------- [X; 3]
+ | |
+ | [X; 3]
+ |
+note: an implementation of `PartialEq` might be missing for `X`
+ --> $DIR/eq-arr.rs:2:5
+ |
+LL | struct X;
+ | ^^^^^^^^ must implement `PartialEq`
+help: consider annotating `X` with `#[derive(PartialEq)]`
+ |
+LL + #[derive(PartialEq)]
+LL | struct X;
+ |
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0369`.