1 error: to use a constant of type `CustomEq` in a pattern, `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
2 --> $DIR/cross-crate-fail.rs:13:9
4 LL | consts::SOME => panic!(),
7 error: to use a constant of type `CustomEq` in a pattern, `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
8 --> $DIR/cross-crate-fail.rs:20:9
10 LL | <Defaulted as consts::AssocConst>::SOME => panic!(),
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 error: aborting due to 2 previous errors