1 // compile-flags: -Z borrowck=mir
7 fn guard2(_: i32) -> bool {
11 // no_mangle to make sure this gets instantiated even in an executable.
13 // EMIT_MIR match_false_edges.full_tested_match.PromoteTemps.after.mir
14 pub fn full_tested_match() {
15 let _ = match Some(42) {
16 Some(x) if guard() => (1, x),
22 // no_mangle to make sure this gets instantiated even in an executable.
24 // EMIT_MIR match_false_edges.full_tested_match2.PromoteTemps.before.mir
25 pub fn full_tested_match2() {
26 let _ = match Some(42) {
27 Some(x) if guard() => (1, x),
33 // EMIT_MIR match_false_edges.main.PromoteTemps.before.mir
35 let _ = match Some(1) {
36 Some(_w) if guard() => 1,
38 Some(y) if guard2(y) => 3,