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