summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-iterator-vec-any-elem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/coherence/coherence-iterator-vec-any-elem.rs')
-rw-r--r--src/test/ui/coherence/coherence-iterator-vec-any-elem.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-iterator-vec-any-elem.rs b/src/test/ui/coherence/coherence-iterator-vec-any-elem.rs
new file mode 100644
index 000000000..43a0a5c42
--- /dev/null
+++ b/src/test/ui/coherence/coherence-iterator-vec-any-elem.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::Remote1;
+
+struct Foo<T>(T);
+
+impl<T,U> Remote1<U> for Foo<T> { }
+
+fn main() { }