summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-62375.rs
blob: a2c8fe551bb03d378c919c7c2cdd18894801eef4 (plain)
1
2
3
4
5
6
7
8
9
enum A {
    Value(())
}

fn main() {
    let a = A::Value(());
    a == A::Value;
    //~^ ERROR binary operation `==` cannot be applied to type `A`
}