summaryrefslogtreecommitdiffstats
path: root/test cases/rust/7 private crate collision/rand.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/rust/7 private crate collision/rand.rs')
-rw-r--r--test cases/rust/7 private crate collision/rand.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/rust/7 private crate collision/rand.rs b/test cases/rust/7 private crate collision/rand.rs
new file mode 100644
index 0000000..8a3d427
--- /dev/null
+++ b/test cases/rust/7 private crate collision/rand.rs
@@ -0,0 +1,4 @@
+// use a name that collides with one of the rustc_private libraries
+#![crate_name = "rand"]
+
+pub fn explore() -> &'static str { "librarystring" }