mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
240 B
Rust
13 lines
240 B
Rust
// 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() {}
|