summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs')
-rw-r--r--src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs b/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs
new file mode 100644
index 000000000..bc1e18b65
--- /dev/null
+++ b/src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs
@@ -0,0 +1,15 @@
+#![feature(fundamental)]
+
+// compile-flags:--crate-name=test
+// aux-build:coherence_lib.rs
+// check-pass
+
+extern crate coherence_lib as lib;
+use lib::*;
+
+#[fundamental]
+struct Local<T>(T);
+
+impl Remote for Local<()> {}
+
+fn main() {}