1 warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack`
2 --> $DIR/issue-30302.rs:13:9
5 | ^^^ help: to match on the variant, qualify the path: `Stack::Nil`
7 error: unreachable pattern
8 --> $DIR/issue-30302.rs:15:9
11 | --- matches any value
12 LL | //~^ WARN pattern binding `Nil` is named the same as one of the variants of the type `Stack`
14 | ^ unreachable pattern
16 note: lint level defined here
17 --> $DIR/issue-30302.rs:4:9
19 LL | #![deny(unreachable_patterns)]
20 | ^^^^^^^^^^^^^^^^^^^^
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0170`.