mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
29 lines
507 B
Rust
29 lines
507 B
Rust
// rustfmt-max_width: 120
|
|
|
|
// elems on multiple lines for max_width 100, but same line for max_width 120
|
|
fn foo(e: Enum) {
|
|
match e {
|
|
Enum::Var {
|
|
elem1,
|
|
elem2,
|
|
elem3,
|
|
} => {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// elems not on same line for either max_width 100 or 120
|
|
fn bar(e: Enum) {
|
|
match e {
|
|
Enum::Var {
|
|
elem1,
|
|
elem2,
|
|
elem3,
|
|
elem4,
|
|
} => {
|
|
return;
|
|
}
|
|
}
|
|
}
|