fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
444 B16 linesraw
1error: unreachable pattern
2  --> $DIR/struct-pattern-match-useless.rs:12:9
3   |
4LL |         Foo { x: _x, y: _y } => (),
5   |         -------------------- matches any value
6LL |         Foo { .. } => ()
7   |         ^^^^^^^^^^ unreachable pattern
8   |
9note: lint level defined here
10  --> $DIR/struct-pattern-match-useless.rs:1:9
11   |
12LL | #![deny(unreachable_patterns)]
13   |         ^^^^^^^^^^^^^^^^^^^^
14
15error: aborting due to previous error
16