summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs')
-rw-r--r--src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs b/src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs
new file mode 100644
index 000000000..b6380f31c
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/imports/imports-reorder-lines-and-items.rs
@@ -0,0 +1,7 @@
+/// This comment should stay with `use std::str;`
+use std::str;
+use std::cmp::{d, c, b, a};
+use std::ddd::aaa;
+use std::ddd::{d as p, c as g, b, a};
+// This comment should stay with `use std::ddd:bbb;`
+use std::ddd::bbb;