mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
14 lines
309 B
Rust
14 lines
309 B
Rust
|
// rustfmt-multiline_match_arm_forces_block: false
|
||
|
// Option forces multiline match arm bodies to be wrapped in a block
|
||
|
|
||
|
fn main() {
|
||
|
match lorem {
|
||
|
Lorem::Ipsum => {
|
||
|
if ipsum {
|
||
|
println!("dolor");
|
||
|
}
|
||
|
}
|
||
|
Lorem::Dolor => println!("amet"),
|
||
|
}
|
||
|
}
|