summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/path_clarity
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/path_clarity')
-rw-r--r--src/tools/rustfmt/tests/target/path_clarity/foo.rs2
-rw-r--r--src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/path_clarity/foo.rs b/src/tools/rustfmt/tests/target/path_clarity/foo.rs
new file mode 100644
index 000000000..cd247fabf
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/path_clarity/foo.rs
@@ -0,0 +1,2 @@
+// rustfmt-edition: 2018
+mod bar;
diff --git a/src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs b/src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs
new file mode 100644
index 000000000..b18a7d349
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/path_clarity/foo/bar.rs
@@ -0,0 +1,3 @@
+pub fn fn_in_bar() {
+ println!("foo/bar.rs");
+}