rust/src/test/ui/coherence/coherence-cross-crate-conflict.rs
2019-10-31 17:11:21 +01:00

16 lines
279 B
Rust

// 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 E0119
//~| ERROR E0210
}
fn main() {
}