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