]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-cross-crate-conflict.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-cross-crate-conflict.rs
CommitLineData
54a0048b
SL
1// The error here is strictly due to orphan rules; the impl here
2// generalizes the one upstream
223e47cc 3
1a4d82fc 4// aux-build:trait_impl_conflict.rs
0731742a 5
1a4d82fc
JJ
6extern crate trait_impl_conflict;
7use trait_impl_conflict::Foo;
970d7e83 8
1a4d82fc 9impl<A> Foo for A {
60c5eb7d
XL
10 //~^ ERROR E0119
11 //~| ERROR E0210
223e47cc
LB
12}
13
14fn main() {
223e47cc 15}