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
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Nil => true,
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | Nil => true,
|
2017-12-19 21:53:39 -06:00
|
|
|
| --- matches any value
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | _ => false
|
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-30302.rs:14:9
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | #![deny(unreachable_patterns)]
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|