rust/tests/ui/pattern/usefulness/const-partial_eq-fallback-ice.stderr
2023-01-11 09:32:08 +00:00

9 lines
273 B
Plaintext

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