fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1warning[E0170]: pattern binding `Nil` is named the same as one of the variants of the type `Stack` 2 --> $DIR/issue-30302.rs:13:9 3 | 4LL | Nil => true, 5 | ^^^ help: to match on the variant, qualify the path: `Stack::Nil` 6 | 7 = note: `#[warn(bindings_with_variant_name)]` on by default 8 9error: unreachable pattern 10 --> $DIR/issue-30302.rs:15:9 11 | 12LL | Nil => true, 13 | --- matches any value 14LL | 15LL | _ => false 16 | ^ unreachable pattern 17 | 18note: the lint level is defined here 19 --> $DIR/issue-30302.rs:4:9 20 | 21LL | #![deny(unreachable_patterns)] 22 | ^^^^^^^^^^^^^^^^^^^^ 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0170`.