summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-1124.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/issue-1124.rs')
-rw-r--r--src/tools/rustfmt/tests/source/issue-1124.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/issue-1124.rs b/src/tools/rustfmt/tests/source/issue-1124.rs
new file mode 100644
index 000000000..35c2197fa
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/issue-1124.rs
@@ -0,0 +1,15 @@
+// rustfmt-reorder_imports: true
+
+use d; use c; use b; use a;
+// The previous line has a space after the `use a;`
+
+mod a { use d; use c; use b; use a; }
+
+use z;
+
+use y;
+
+
+
+use x;
+use a;