]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1445-restrict-constants-in-patterns/match-nonempty-array-forbidden-without-eq.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / rfc-1445-restrict-constants-in-patterns / match-nonempty-array-forbidden-without-eq.stderr
1 error: to use a constant of type `B` in a pattern, `B` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/match-nonempty-array-forbidden-without-eq.rs:16:9
3    |
4 LL |         FOO => { }
5    |         ^^^
6
7 error: aborting due to previous error
8