mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
11 lines
165 B
Rust
11 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
|
|
}
|
|
}
|