summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/file-lines-7.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/file-lines-7.rs')
-rw-r--r--src/tools/rustfmt/tests/source/file-lines-7.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/file-lines-7.rs b/src/tools/rustfmt/tests/source/file-lines-7.rs
new file mode 100644
index 000000000..b227ac35d
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/file-lines-7.rs
@@ -0,0 +1,24 @@
+// rustfmt-file_lines: [{"file":"tests/source/file-lines-7.rs","range":[8,15]}]
+
+struct A {
+ t: i64,
+}
+
+mod foo {
+ fn bar() {
+
+
+
+ // test
+ let i = 12;
+ // test
+ }
+
+ fn baz() {
+
+
+
+ ///
+ let j = 15;
+ }
+}