diff options
Diffstat (limited to 'src/test/ui/coherence/coherence-pair-covered-uncovered.rs')
-rw-r--r-- | src/test/ui/coherence/coherence-pair-covered-uncovered.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-pair-covered-uncovered.rs b/src/test/ui/coherence/coherence-pair-covered-uncovered.rs new file mode 100644 index 000000000..da970572f --- /dev/null +++ b/src/test/ui/coherence/coherence-pair-covered-uncovered.rs @@ -0,0 +1,11 @@ +// aux-build:coherence_lib.rs + +extern crate coherence_lib as lib; +use lib::{Remote, Pair}; + +struct Local<T>(T); + +impl<T,U> Remote for Pair<T,Local<U>> { } +//~^ ERROR E0117 + +fn main() { } |