blob: a591218b4ccc751663a93059fdc7ccc354c12596 [file] [log] [blame]
Trevor Spiteri48df8f82018-05-02 11:38:23 +02001// rustfmt-max_width: 120
2
3// elems on multiple lines for max_width 100, but same line for max_width 120
4fn foo(e: Enum) {
5 match e {
6 Enum::Var {
7 elem1,
8 elem2,
9 elem3,
10 } => {
11 return;
12 }
13 }
14}
15
16// elems not on same line for either max_width 100 or 120
17fn bar(e: Enum) {
18 match e {
19 Enum::Var {
20 elem1,
21 elem2,
22 elem3,
23 elem4,
24 } => {
25 return;
26 }
27 }
28}