2017-12-10 13:47:55 -06:00
|
|
|
error: unreachable pattern
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-31221.rs:28:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-19 21:11:02 -06:00
|
|
|
27 | Var3 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ---- matches any value
|
2017-12-10 14:29:24 -06:00
|
|
|
28 | Var2 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ^^^^ unreachable pattern
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/issue-31221.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-31221.rs:34:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-19 21:11:02 -06:00
|
|
|
33 | &Var3 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ----- matches any value
|
2017-12-10 14:29:24 -06:00
|
|
|
34 | &Var2 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ^^^^^ unreachable pattern
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-31221.rs:41:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-19 21:11:02 -06:00
|
|
|
40 | (c, d) => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ------ matches any value
|
2017-12-10 14:29:24 -06:00
|
|
|
41 | anything => ()
|
2017-12-19 21:53:39 -06:00
|
|
|
| ^^^^^^^^ unreachable pattern
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|