1 // Issue 61188 pointed out a case where we hit an ICE during code gen:
2 // the compiler assumed that `PartialEq` was always implemented on any
3 // use of a `const` item in a pattern context, but the pre-existing
4 // structural-match checking was too shallow
5 // (see rust-lang/rust#62307), and so we hit cases where we were
6 // trying to dispatch to `PartialEq` on types that did not implement
16 //~^ ERROR must be annotated with `#[derive(PartialEq, Eq)]`