rust/tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr

9 lines
273 B
Plaintext
Raw Normal View History

2022-11-17 09:30:42 -06:00
error: to use a constant of type `MyType` in a pattern, `MyType` must be annotated with `#[derive(PartialEq, Eq)]`
--> $DIR/const-partial_eq-fallback-ice.rs:14:12
|
LL | if let CONSTANT = &&MyType {
| ^^^^^^^^
error: aborting due to previous error