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 = note: `#[warn(bindings_with_variant_name)]` on by default
9 error: unreachable pattern
10 --> $DIR/issue-30302.rs:15:9
13 | --- matches any value
16 | ^ unreachable pattern
18 note: the lint level is defined here
19 --> $DIR/issue-30302.rs:4:9
21 LL | #![deny(unreachable_patterns)]
22 | ^^^^^^^^^^^^^^^^^^^^
24 error: aborting due to previous error; 1 warning emitted
26 For more information about this error, try `rustc --explain E0170`.