1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
// 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", } }