From a9647f11080db04af3847721a06d717df1b93cd7 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Fri, 10 Nov 2017 17:08:16 +0900 Subject: [PATCH] Add a test for #2025 --- tests/source/issue-2025.rs | 8 ++++++++ tests/target/issue-2025.rs | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 tests/source/issue-2025.rs create mode 100644 tests/target/issue-2025.rs diff --git a/tests/source/issue-2025.rs b/tests/source/issue-2025.rs new file mode 100644 index 00000000000..c6f61b4e3e1 --- /dev/null +++ b/tests/source/issue-2025.rs @@ -0,0 +1,8 @@ + + + + +// See if rustfmt removes empty lines on top of the file. +pub fn foo() { + println!("hello, world"); +} diff --git a/tests/target/issue-2025.rs b/tests/target/issue-2025.rs new file mode 100644 index 00000000000..38bf369bea3 --- /dev/null +++ b/tests/target/issue-2025.rs @@ -0,0 +1,4 @@ +// See if rustfmt removes empty lines on top of the file. +pub fn foo() { + println!("hello, world"); +}