Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
binop
/
eq-arr.rs
blob: a77c4c5aabcddac8a560cc0b8df6f3ad7339ed79 [
file
] [
log
] [
blame
] [
edit
]
fn
main
()
{
struct
X
;
//~^ HELP consider annotating `X` with `#[derive(PartialEq)]`
let
xs
=
[
X
,
X
,
X
];
let
eq
=
xs
==
[
X
,
X
,
X
];
//~^ ERROR binary operation `==` cannot be applied to type `[X; 3]`
}