]> git.proxmox.com Git - rustc.git/blob - src/tools/rustfmt/tests/target/configs/match_arm_leading_pipes/preserve.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / tools / rustfmt / tests / target / configs / match_arm_leading_pipes / preserve.rs
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" | "bar" => {}
17 _ => {}
18 }
19 }
20
21 fn bar() {
22 match baz {
23 "qux" => {}
24 "foo" | "bar" => {}
25 _ => {}
26 }
27 }