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.

9 lines
246 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!(),
| ^^^^^^^
error: aborting due to previous error
2020-04-07 14:11:29 -05:00