2017-12-10 13:47:55 -06:00
|
|
|
warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
|
|
|
|
--> $DIR/issue-30302.rs:23:9
|
|
|
|
|
|
|
|
|
23 | Nil => true,
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= help: if you meant to match on a variant, consider making the path in the pattern qualified: `Stack::Nil`
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-30302.rs:25:9
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2017-12-19 21:11:02 -06:00
|
|
|
23 | Nil => true,
|
|
|
|
| --- this pattern matches any value
|
|
|
|
24 | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
|
2017-12-10 14:29:24 -06:00
|
|
|
25 | _ => false
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^ this is an unreachable pattern
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
--> $DIR/issue-30302.rs:14:9
|
|
|
|
|
|
|
|
|
14 | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|