summaryrefslogtreecommitdiffstats
path: root/tests/ui/binop/eq-arr.rs
blob: a77c4c5aabcddac8a560cc0b8df6f3ad7339ed79 (plain)
1
2
3
4
5
6
7
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]`
}