rust/tests/ui/consts/match_ice.stderr

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

12 lines
393 B
Plaintext
Raw Normal View History

2023-09-26 07:39:41 +00:00
error: to use a constant of type `S` in a pattern, `S` must be annotated with `#[derive(PartialEq)]`
--> $DIR/match_ice.rs:11:9
|
LL | C => {}
| ^
|
= note: the traits must be derived, manual `impl`s are not sufficient
2023-09-26 07:39:41 +00:00
= note: see https://doc.rust-lang.org/stable/std/marker/trait.StructuralPartialEq.html for details
2019-01-14 18:51:00 +00:00
error: aborting due to 1 previous error
2019-01-14 18:51:00 +00:00