about summary refs log tree commit diff
path: root/tests/ui/consts/const_in_pattern/issue-65466.stderr
blob: 511a38bbc00d8eba796fe540d3e7ac4f978c5c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error: constant of non-structural type `&[O<B>]` in a pattern
  --> $DIR/issue-65466.rs:14:9
   |
LL | struct B;
   | -------- must be annotated with `#[derive(PartialEq)]` to be usable in patterns
LL |
LL | const C: &[O<B>] = &[O::None];
   | ---------------- constant defined here
...
LL |         C => (),
   |         ^ 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