]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | // rustfmt-match_arm_leading_pipes: Preserve |
2 | ||
3 | fn foo() { | |
4 | match foo { | |
5 | | "foo" | "bar" => {} | |
6 | | "baz" | |
7 | | "something relatively long" | |
8 | | "something really really really realllllllllllllly long" => println!("x"), | |
9 | | "qux" => println!("y"), | |
10 | _ => {} | |
11 | } | |
12 | } | |
13 | ||
14 | fn issue_3973() { | |
15 | match foo { | |
16 | | "foo" | |
17 | | "bar" => {} | |
18 | _ => {} | |
19 | } | |
20 | } | |
21 | ||
22 | fn bar() { | |
23 | match baz { | |
24 | "qux" => { } | |
25 | "foo" | "bar" => {} | |
26 | _ => {} | |
27 | } | |
28 | } |