From 9d281b44c3a080cabc570780088627752c5a4dd5 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Sun, 17 Mar 2019 12:21:21 +0900 Subject: [PATCH] Add a test for #3427 --- tests/source/path_clarity/foo.rs | 2 ++ tests/source/path_clarity/foo/bar.rs | 3 +++ tests/target/path_clarity/foo.rs | 2 ++ tests/target/path_clarity/foo/bar.rs | 3 +++ 4 files changed, 10 insertions(+) create mode 100644 tests/source/path_clarity/foo.rs create mode 100644 tests/source/path_clarity/foo/bar.rs create mode 100644 tests/target/path_clarity/foo.rs create mode 100644 tests/target/path_clarity/foo/bar.rs diff --git a/tests/source/path_clarity/foo.rs b/tests/source/path_clarity/foo.rs new file mode 100644 index 00000000000..cd247fabfe3 --- /dev/null +++ b/tests/source/path_clarity/foo.rs @@ -0,0 +1,2 @@ +// rustfmt-edition: 2018 +mod bar; diff --git a/tests/source/path_clarity/foo/bar.rs b/tests/source/path_clarity/foo/bar.rs new file mode 100644 index 00000000000..8c1be504c09 --- /dev/null +++ b/tests/source/path_clarity/foo/bar.rs @@ -0,0 +1,3 @@ +pub fn fn_in_bar( ) { + println!( "foo/bar.rs" ); +} diff --git a/tests/target/path_clarity/foo.rs b/tests/target/path_clarity/foo.rs new file mode 100644 index 00000000000..cd247fabfe3 --- /dev/null +++ b/tests/target/path_clarity/foo.rs @@ -0,0 +1,2 @@ +// rustfmt-edition: 2018 +mod bar; diff --git a/tests/target/path_clarity/foo/bar.rs b/tests/target/path_clarity/foo/bar.rs new file mode 100644 index 00000000000..b18a7d3499c --- /dev/null +++ b/tests/target/path_clarity/foo/bar.rs @@ -0,0 +1,3 @@ +pub fn fn_in_bar() { + println!("foo/bar.rs"); +}