summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/eq-arr.stderr
blob: a22f8e3ab0c7923fccdfa2218e4f1a4609abbc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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`.