]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/usefulness/struct-pattern-match-useless.stderr
Auto merge of #98526 - jyn514:download-llvm-outside-checkout, r=Mark-Simulacrum
[rust.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