rust/tests/mir-opt/building/match/simple_match.rs
2024-03-30 17:37:15 +01:00

14 lines
258 B
Rust

// skip-filecheck
// Test that we don't generate unnecessarily large MIR for very simple matches
// EMIT_MIR simple_match.match_bool.built.after.mir
fn match_bool(x: bool) -> usize {
match x {
true => 10,
_ => 20,
}
}
fn main() {}