rust/tests/source/match-wildcard-trailing-comma.rs

11 lines
166 B
Rust
Raw Normal View History

2016-01-06 03:02:01 +01:00
// rustfmt-match_wildcard_trailing_comma: false
fn match_wild(x: i32) -> i32 {
match x {
1 => 1,
2 => 2,
3 => 3,
_ => 0,
}
}