summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/configs/reorder_impl_items
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/configs/reorder_impl_items')
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs11
-rw-r--r--src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs11
2 files changed, 22 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs
new file mode 100644
index 000000000..beb99f0fb
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/false.rs
@@ -0,0 +1,11 @@
+// rustfmt-reorder_impl_items: false
+
+struct Dummy;
+
+impl Iterator for Dummy {
+ fn next(&mut self) -> Option<Self::Item> {
+ None
+ }
+
+ type Item = i32;
+}
diff --git a/src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs
new file mode 100644
index 000000000..612b1c84a
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/configs/reorder_impl_items/true.rs
@@ -0,0 +1,11 @@
+// rustfmt-reorder_impl_items: true
+
+struct Dummy;
+
+impl Iterator for Dummy {
+ fn next(&mut self) -> Option<Self::Item> {
+ None
+ }
+
+ type Item = i32;
+}