]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_in_pattern/issue-78057.stderr
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / test / ui / consts / const_in_pattern / issue-78057.stderr
1 error: to use a constant of type `Opaque` in a pattern, `Opaque` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/issue-78057.rs:12:9
3    |
4 LL |         FOO => {},
5    |         ^^^
6
7 error: unreachable pattern
8   --> $DIR/issue-78057.rs:14:9
9    |
10 LL |         FOO => {},
11    |         --- matches any value
12 LL |
13 LL |         _ => {}
14    |         ^ unreachable pattern
15    |
16 note: the lint level is defined here
17   --> $DIR/issue-78057.rs:1:9
18    |
19 LL | #![deny(unreachable_patterns)]
20    |         ^^^^^^^^^^^^^^^^^^^^
21
22 error: aborting due to 2 previous errors
23