1 // EMIT_MIR_FOR_EACH_BIT_WIDTH
2 // EMIT_MIR matches_u8.exhaustive_match.MatchBranchSimplification.diff
3 // EMIT_MIR matches_u8.exhaustive_match_i8.MatchBranchSimplification.diff
11 pub fn exhaustive_match(e: E) -> u8 {
19 pub fn exhaustive_match_i8(e: E) -> i8 {
27 assert_eq!(exhaustive_match(E::A), 0);
28 assert_eq!(exhaustive_match(E::B), 1);
30 assert_eq!(exhaustive_match_i8(E::A), 0);
31 assert_eq!(exhaustive_match_i8(E::B), 1);