rust/tests/ui/pattern/usefulness/struct-pattern-match-useless.stderr
2023-01-11 09:32:08 +00:00

17 lines
451 B
Plaintext

error: unreachable pattern
--> $DIR/struct-pattern-match-useless.rs:12:9
|
LL | Foo { x: _x, y: _y } => (),
| -------------------- matches any value
LL | Foo { .. } => ()
| ^^^^^^^^^^ unreachable pattern
|
note: the lint level is defined here
--> $DIR/struct-pattern-match-useless.rs:1:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error