summary refs log tree commit diff
path: root/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs')
-rw-r--r--tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs b/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs
new file mode 100644
index 00000000000..71b27cd85bf
--- /dev/null
+++ b/tests/run-make/crate-loading-crate-depends-on-itself/foo-current.rs
@@ -0,0 +1,14 @@
+#![crate_type = "lib"]
+#![crate_name = "foo"]
+
+extern crate foo;
+
+pub struct Struct;
+pub trait Trait {}
+impl Trait for Struct {}
+
+fn check_trait<T: Trait>() {}
+
+fn ice() {
+    check_trait::<foo::Struct>();
+}