1 warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2 --> $DIR/issue-30302.rs:23:9
7 = help: if you meant to match on a variant, consider making the path in the pattern qualified: `Stack::Nil`
9 error: unreachable pattern
10 --> $DIR/issue-30302.rs:25:9
13 | --- matches any value
14 LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
16 | ^ unreachable pattern
18 note: lint level defined here
19 --> $DIR/issue-30302.rs:14:9
21 LL | #![deny(unreachable_patterns)]
22 | ^^^^^^^^^^^^^^^^^^^^
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0170`.