diff options
Diffstat (limited to 'src/test/ui/coherence/coherence-cross-crate-conflict.rs')
-rw-r--r-- | src/test/ui/coherence/coherence-cross-crate-conflict.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/coherence/coherence-cross-crate-conflict.rs b/src/test/ui/coherence/coherence-cross-crate-conflict.rs new file mode 100644 index 000000000..588630957 --- /dev/null +++ b/src/test/ui/coherence/coherence-cross-crate-conflict.rs @@ -0,0 +1,13 @@ +// The error here is strictly due to orphan rules; the impl here +// generalizes the one upstream + +// aux-build:trait_impl_conflict.rs + +extern crate trait_impl_conflict; +use trait_impl_conflict::Foo; + +impl<A> Foo for A { //~ ERROR E0210 +} + +fn main() { +} |