• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error: 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
3   |
4LL |         consts::SOME => panic!(),
5   |         ^^^^^^^^^^^^
6   |
7   = note: the traits must be derived, manual `impl`s are not sufficient
8   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
9
10error: to use a constant of type `CustomEq` in a pattern, `CustomEq` must be annotated with `#[derive(PartialEq, Eq)]`
11  --> $DIR/cross-crate-fail.rs:20:9
12   |
13LL |         <Defaulted as consts::AssocConst>::SOME  => panic!(),
14   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: the traits must be derived, manual `impl`s are not sufficient
17   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
18
19error: aborting due to 2 previous errors
20
21