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