rust/tests/source/indent_match_arms.rs
2017-08-11 17:44:16 +09:00

27 lines
472 B
Rust

// rustfmt-indent_match_arms: false
fn main() {
match x {
1 => "one",
2 => "two",
3 => "three",
4 => "four",
5 => "five",
_ => "something else",
}
match x {
1 => "one",
2 => "two",
3 => "three",
4 => "four",
5 => match y {
'a' => 'A',
'b' => 'B',
'c' => 'C',
_ => "Nope",
},
_ => "something else",
}
}