summary refs log tree commit diff
path: root/src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr
blob: 0115fc081a9701f06ce37608998fb3b15547e26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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: lint level defined here
  --> $DIR/struct-pattern-match-useless.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error