2020-04-07 12:11:29 -07:00
|
|
|
error: to use a constant of type `Foo` in a pattern, `Foo` must be annotated with `#[derive(PartialEq, Eq)]`
|
2020-05-21 12:49:38 -07:00
|
|
|
--> $DIR/no-eq-branch-fail.rs:21:9
|
2020-04-07 12:11:29 -07:00
|
|
|
|
|
|
|
|
LL | BAR_BAZ => panic!(),
|
|
|
|
| ^^^^^^^
|
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-04-07 12:11:29 -07:00
|
|
|
|
2020-09-23 17:03:31 +02:00
|
|
|
error: aborting due to previous error
|
2020-04-07 12:11:29 -07:00
|
|
|
|