2017-12-10 13:47:55 -06:00
|
|
|
error: unreachable pattern
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-31221.rs:18:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Var3 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ---- matches any value
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Var2 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ^^^^ unreachable pattern
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-31221.rs:4:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![deny(unreachable_patterns)]
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-31221.rs:24:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &Var3 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ----- matches any value
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | &Var2 => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ^^^^^ unreachable pattern
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-31221.rs:31:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | (c, d) => (),
|
2017-12-19 21:53:39 -06:00
|
|
|
| ------ matches any value
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | 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
|
|
|
|
|