summaryrefslogtreecommitdiffstats
path: root/src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr
blob: fbee33de6f30af88dacf89547059950cf0885122 (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: the lint level is defined here
  --> $DIR/struct-pattern-match-useless.rs:1:9
   |
LL | #![deny(unreachable_patterns)]
   |         ^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error