rust/tests/ui/consts/const_in_pattern/no-eq-branch-fail.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
419 B
Plaintext
Raw Normal View History

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