summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs b/src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs
new file mode 100644
index 000000000..15868ca86
--- /dev/null
+++ b/src/test/ui/coherence/coherence-pair-covered-uncovered-1.rs
@@ -0,0 +1,15 @@
+// Test that the same coverage rules apply even if the local type appears in the
+// list of type parameters, not the self type.
+
+// aux-build:coherence_lib.rs
+
+
+extern crate coherence_lib as lib;
+use lib::{Remote1, Pair};
+
+pub struct Local<T>(T);
+
+impl<T, U> Remote1<Pair<T, Local<U>>> for i32 { }
+//~^ ERROR E0117
+
+fn main() { }