about summary refs log tree commit diff
path: root/tests/ui/match/issue-72896-non-partial-eq-const.stderr
blob: 1f82d3e822adb54f67eb1d3106c77de3c26c7526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: constant of non-structural type `EnumSet<Enum8>` in a pattern
  --> $DIR/issue-72896-non-partial-eq-const.rs:19:9
   |
LL | enum Enum8 { }
   | ---------- must be annotated with `#[derive(PartialEq)]` to be usable in patterns
...
LL | const CONST_SET: EnumSet<Enum8> = EnumSet { __enumset_underlying: 3 };
   | ------------------------------- constant defined here
...
LL |         CONST_SET => { /* ok */ }
   |         ^^^^^^^^^ constant of non-structural type
   |
   = note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details

error: aborting due to 1 previous error