blob: 561964bcb24b6ed04f6879828c03950f004ccf3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
error: unreachable pattern
--> $DIR/struct-pattern-match-useless.rs:12:9
|
LL | Foo { .. } => () //~ ERROR unreachable pattern
| ^^^^^^^^^^
|
note: lint level defined here
--> $DIR/struct-pattern-match-useless.rs:1:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
|