diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs b/src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs new file mode 100644 index 000000000..993b6b681 --- /dev/null +++ b/src/tools/rustfmt/tests/target/configs/control_brace_style/always_same_line.rs @@ -0,0 +1,14 @@ +// rustfmt-control_brace_style: AlwaysSameLine +// Control brace style + +fn main() { + if lorem { + println!("ipsum!"); + } else { + println!("dolor!"); + } + match magi { + Homura => "Akemi", + Madoka => "Kaname", + } +} |