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