summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-covered-type-parameter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/coherence-covered-type-parameter.rs')
-rw-r--r--src/test/ui/coherence/coherence-covered-type-parameter.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-covered-type-parameter.rs b/src/test/ui/coherence/coherence-covered-type-parameter.rs
new file mode 100644
index 000000000..bb95c59d1
--- /dev/null
+++ b/src/test/ui/coherence/coherence-covered-type-parameter.rs
@@ -0,0 +1,14 @@
+// run-pass
+#![allow(dead_code)]
+// aux-build:coherence_lib.rs
+
+// pretty-expanded FIXME #23616
+
+extern crate coherence_lib as lib;
+use lib::Remote;
+
+struct Foo<T>(T);
+
+impl<T> Remote for Foo<T> { }
+
+fn main() { }