1 warning[E0170]: pattern binding `A` is named the same as one of the variants of the type `E`
2 --> $DIR/issue-14221.rs:13:13
5 | ^ help: to match on the variant, qualify the path: `E::A`
7 = note: `#[warn(bindings_with_variant_name)]` on by default
9 warning[E0170]: pattern binding `B` is named the same as one of the variants of the type `E`
10 --> $DIR/issue-14221.rs:15:13
13 | ^ help: to match on the variant, qualify the path: `E::B`
15 error: unreachable pattern
16 --> $DIR/issue-14221.rs:15:13
22 | ^ unreachable pattern
24 note: the lint level is defined here
25 --> $DIR/issue-14221.rs:1:9
27 LL | #![deny(unreachable_patterns)]
28 | ^^^^^^^^^^^^^^^^^^^^
30 error: aborting due to previous error; 2 warnings emitted
32 For more information about this error, try `rustc --explain E0170`.