summaryrefslogtreecommitdiffstats
path: root/tests/run-make/crate-hash-rustc-version/b.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/crate-hash-rustc-version/b.rs')
-rw-r--r--tests/run-make/crate-hash-rustc-version/b.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-make/crate-hash-rustc-version/b.rs b/tests/run-make/crate-hash-rustc-version/b.rs
new file mode 100644
index 000000000..316ac26e7
--- /dev/null
+++ b/tests/run-make/crate-hash-rustc-version/b.rs
@@ -0,0 +1,8 @@
+extern crate a;
+
+use a::foo;
+
+fn main() {
+ let x = String::from("Hello");
+ println!("{}", foo(x));
+}