2020-10-17 19:01:10 +01:00
|
|
|
error: to use a constant of type `Opaque` in a pattern, `Opaque` must be annotated with `#[derive(PartialEq, Eq)]`
|
|
|
|
--> $DIR/issue-78057.rs:12:9
|
|
|
|
|
|
|
|
|
LL | FOO => {},
|
|
|
|
| ^^^
|
2023-03-27 10:14:08 -04: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
|
2020-10-17 19:01:10 +01:00
|
|
|
|
2023-09-18 15:54:23 +00:00
|
|
|
error: aborting due to previous error
|
2020-10-17 19:01:10 +01:00
|
|
|
|