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"); +}