2018-08-08 12:28:26 +00:00
|
|
|
error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/match-requires-both-partialeq-and-eq.rs:17:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | FOO => { }
|
|
|
|
| ^^^
|
2023-03-27 14:14:08 +00:00
|
|
|
|
|
|
|
|
= note: the traits must be derived, manual `impl`s are not sufficient
|
|
|
|
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralEq.html for details
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2020-09-23 15:03:31 +00:00
|
|
|
error: aborting due to previous error
|
2018-08-08 12:28:26 +00:00
|
|
|
|