rust/src/test/mir-opt/simplify_match.rs

10 lines
167 B
Rust

#[inline(never)]
fn noop() {}
// EMIT_MIR rustc.main.ConstProp.diff
fn main() {
match { let x = false; x } {
true => noop(),
false => {},
}
}