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