summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/generic_const_exprs/typeid-equality-by-subtyping.stderr
blob: 8cbd12654480ab09b5fd4e7c9702562a692a853c (plain)
1
2
3
4
5
6
7
8
9
10
11
error: to use a constant of type `TypeId` in a pattern, `TypeId` must be annotated with `#[derive(PartialEq, Eq)]`
  --> $DIR/typeid-equality-by-subtyping.rs:18:9
   |
LL |         WHAT_A_TYPE => 0,
   |         ^^^^^^^^^^^
   |
   = note: the traits must be derived, manual `impl`s are not sufficient
   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details

error: aborting due to previous error