2 // #30527 - We were not generating arms with guards in certain cases.
4 fn match_with_guard(x: Option<i8>) -> i8 {
6 Some(xyz) if xyz > 100 => 0,
13 assert_eq!(match_with_guard(Some(111)), 0);
14 assert_eq!(match_with_guard(Some(2)), -1);
15 assert_eq!(match_with_guard(None), -2);