]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/coherence-cross-crate-conflict.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / 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 { //~ ERROR E0210
10 }
11
12 fn main() {
13 }