diff options
Diffstat (limited to 'src/tools/rustfmt/tests/target/empty-item-single-line-false.rs')
-rw-r--r-- | src/tools/rustfmt/tests/target/empty-item-single-line-false.rs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/empty-item-single-line-false.rs b/src/tools/rustfmt/tests/target/empty-item-single-line-false.rs new file mode 100644 index 000000000..bf7f70e7c --- /dev/null +++ b/src/tools/rustfmt/tests/target/empty-item-single-line-false.rs @@ -0,0 +1,41 @@ +// rustfmt-brace_style: AlwaysNextLine +// rustfmt-empty_item_single_line: false + +fn function() +{ +} + +struct Struct {} + +enum Enum {} + +trait Trait +{ +} + +impl<T> Trait for T +{ +} + +trait Trait2<T> +where + T: Copy + Display + Write + Read + FromStr, +{ +} + +trait Trait3<T> +where + T: Something + + SomethingElse + + Sync + + Send + + Display + + Debug + + Copy + + Hash + + Debug + + Display + + Write + + Read, +{ +} |