summary refs log tree commit diff
path: root/src/test/ui/consts/const_in_pattern/issue-78057.stderr
blob: 0d49d0e96c8540908508e46b7e3a651fc782ea28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: to use a constant of type `Opaque` in a pattern, `Opaque` must be annotated with `#[derive(PartialEq, Eq)]`
  --> $DIR/issue-78057.rs:12:9
   |
LL |         FOO => {},
   |         ^^^

error: unreachable pattern
  --> $DIR/issue-78057.rs:14:9
   |
LL |         _ => {}
   |         ^
   |
note: the lint level is defined here
  --> $DIR/issue-78057.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: aborting due to 2 previous errors