test: snapshot current whitespace before a skipped impl item
diff --git a/src/tools/rustfmt/tests/source/issue-5521.rs b/src/tools/rustfmt/tests/source/issue-5521.rs
new file mode 100644
index 0000000..db349d0
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-5521.rs
@@ -0,0 +1,29 @@
+// Whitespace on the otherwise blank line before a `#[rustfmt::skip]` item has to be
+// removed regardless of how many whitespace characters it is made of.
+impl Even for Foo {
+    const FAIL: &'static str = "";
+    
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Odd for Foo {
+    const FAIL: &'static str = "";
+   
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Single for Foo {
+    const FAIL: &'static str = "";
+ 
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Tabs for Foo {
+    const FAIL: &'static str = "";
+		
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
diff --git a/src/tools/rustfmt/tests/target/issue-5521.rs b/src/tools/rustfmt/tests/target/issue-5521.rs
new file mode 100644
index 0000000..1b9882a
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-5521.rs
@@ -0,0 +1,29 @@
+// Whitespace on the otherwise blank line before a `#[rustfmt::skip]` item has to be
+// removed regardless of how many whitespace characters it is made of.
+impl Even for Foo {
+    const FAIL: &'static str = "";
+    
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Odd for Foo {
+    const FAIL: &'static str = "";
+  
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Single for Foo {
+    const FAIL: &'static str = "";
+
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}
+
+impl Tabs for Foo {
+    const FAIL: &'static str = "";
+		
+    #[rustfmt::skip]
+    fn to_style(&self, template: &str) {}
+}