summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/configs/tab_spaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/configs/tab_spaces')
-rw-r--r--src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs14
-rw-r--r--src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs14
2 files changed, 28 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs b/src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs
new file mode 100644
index 000000000..85961706e
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/tab_spaces/2.rs
@@ -0,0 +1,14 @@
+// rustfmt-tab_spaces: 2
+// rustfmt-max_width: 30
+// rustfmt-indent_style: Block
+// Tab spaces
+
+fn lorem() {
+ let ipsum = dolor();
+ let sit = vec![
+ "amet",
+ "consectetur",
+ "adipiscing",
+ "elit.",
+ ];
+}
diff --git a/src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs b/src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs
new file mode 100644
index 000000000..524a55121
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/configs/tab_spaces/4.rs
@@ -0,0 +1,14 @@
+// rustfmt-tab_spaces: 4
+// rustfmt-max_width: 30
+// rustfmt-indent_style: Block
+// Tab spaces
+
+fn lorem() {
+ let ipsum = dolor();
+ let sit = vec![
+ "amet",
+ "consectetur",
+ "adipiscing",
+ "elit.",
+ ];
+}