summaryrefslogtreecommitdiffstats
path: root/tests/run-make/type-mismatch-same-crate-name/crateA.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/type-mismatch-same-crate-name/crateA.rs')
-rw-r--r--tests/run-make/type-mismatch-same-crate-name/crateA.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run-make/type-mismatch-same-crate-name/crateA.rs b/tests/run-make/type-mismatch-same-crate-name/crateA.rs
new file mode 100644
index 000000000..4871c8c2e
--- /dev/null
+++ b/tests/run-make/type-mismatch-same-crate-name/crateA.rs
@@ -0,0 +1,16 @@
+mod foo {
+ pub struct Foo;
+}
+
+mod bar {
+ pub trait Bar{}
+
+ pub fn bar() -> Box<Bar> {
+ unimplemented!()
+ }
+}
+
+// This makes the publicly accessible path
+// differ from the internal one.
+pub use foo::Foo;
+pub use bar::{Bar, bar};