]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-cross-crate-conflict.rs
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
[rust.git] / src / test / ui / coherence / coherence-cross-crate-conflict.rs
1 // The error here is strictly due to orphan rules; the impl here
2 // generalizes the one upstream
3
4 // aux-build:trait_impl_conflict.rs
5
6 extern crate trait_impl_conflict;
7 use trait_impl_conflict::Foo;
8
9 impl<A> Foo for A {
10     //~^ ERROR E0119
11     //~| ERROR E0210
12 }
13
14 fn main() {
15 }