rust/tests/target/match-wildcard-trailing-comma.rs
2016-01-06 11:02:01 +09:00

10 lines
165 B
Rust

// rustfmt-match_wildcard_trailing_comma: false
fn match_wild(x: i32) -> i32 {
match x {
1 => 1,
2 => 2,
3 => 3,
_ => 0
}
}