fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
677 B24 linesraw
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
7error: unreachable pattern
8  --> $DIR/issue-30302.rs:15:9
9   |
10LL |         Nil => true,
11   |         --- matches any value
12LL |
13LL |         _ => false
14   |         ^ unreachable pattern
15   |
16note: lint level defined here
17  --> $DIR/issue-30302.rs:4:9
18   |
19LL | #![deny(unreachable_patterns)]
20   |         ^^^^^^^^^^^^^^^^^^^^
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0170`.