]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_in_pattern/no-eq-branch-fail.stderr
Rollup merge of #98609 - TaKO8Ki:fix-ice-for-associated-constant-generics, r=lcnr
[rust.git] / src / test / ui / consts / const_in_pattern / no-eq-branch-fail.stderr
1 error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/no-eq-branch-fail.rs:21:9
3    |
4 LL |         BAR_BAZ => panic!(),
5    |         ^^^^^^^
6
7 error: aborting due to previous error
8