2023-04-26 19:57:13 -05:00
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-04-26 19:57:13 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|