]> git.proxmox.com Git - rustc.git/blob - src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr
New upstream version 1.67.1+dfsg1
[rustc.git] / src / test / ui / pattern / usefulness / struct-pattern-match-useless.stderr
1 error: unreachable pattern
2 --> $DIR/struct-pattern-match-useless.rs:12:9
3 |
4 LL | Foo { x: _x, y: _y } => (),
5 | -------------------- matches any value
6 LL | Foo { .. } => ()
7 | ^^^^^^^^^^ unreachable pattern
8 |
9 note: the lint level is defined here
10 --> $DIR/struct-pattern-match-useless.rs:1:9
11 |
12 LL | #![deny(unreachable_patterns)]
13 | ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16