fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
913 B30 linesraw
1warning[E0170]: pattern binding `A` is named the same as one of the variants of the type `E`
2  --> $DIR/issue-14221.rs:13:13
3   |
4LL |             A => "A",
5   |             ^ help: to match on the variant, qualify the path: `E::A`
6
7warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `E`
8  --> $DIR/issue-14221.rs:15:13
9   |
10LL |             B => "B",
11   |             ^ help: to match on the variant, qualify the path: `E::B`
12
13error: unreachable pattern
14  --> $DIR/issue-14221.rs:15:13
15   |
16LL |             A => "A",
17   |             - matches any value
18LL |
19LL |             B => "B",
20   |             ^ unreachable pattern
21   |
22note: lint level defined here
23  --> $DIR/issue-14221.rs:1:9
24   |
25LL | #![deny(unreachable_patterns)]
26   |         ^^^^^^^^^^^^^^^^^^^^
27
28error: aborting due to previous error
29
30For more information about this error, try `rustc --explain E0170`.