blob: 162d812d8cffc3e71af362c24f721853c61ad71d (
plain)
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-match_arm_leading_pipes: Always
fn foo() {
match foo {
"foo" | "bar" => {}
"baz"
| "something relatively long"
| "something really really really realllllllllllllly long" => println!("x"),
"qux" => println!("y"),
_ => {}
}
}
fn issue_3973() {
match foo {
"foo" | "bar" => {}
_ => {}
}
}
fn bar() {
match baz {
"qux" => {}
"foo" | "bar" => {}
_ => {}
}
}
|