]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-1445-restrict-constants-in-patterns/match-requires-both-partialeq-and-eq.stderr
Auto merge of #86155 - alexcrichton:abort-on-unwind, r=nikomatsakis
[rust.git] / src / test / ui / rfc-1445-restrict-constants-in-patterns / match-requires-both-partialeq-and-eq.stderr
1 error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
2   --> $DIR/match-requires-both-partialeq-and-eq.rs:17:9
3    |
4 LL |         FOO => { }
5    |         ^^^
6
7 error: aborting due to previous error
8