fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
451 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: the lint level is 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