1 #![deny(unreachable_patterns)]
2 #![allow(unused_variables)]
3 #![allow(non_snake_case)]
11 pub fn key(e: ::E) -> &'static str {
14 //~^ WARN pattern binding `A` is named the same as one of the variants of the type `E`
15 B => "B", //~ ERROR: unreachable pattern
16 //~^ WARN pattern binding `B` is named the same as one of the variants of the type `E`