]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/coherence-cross-crate-conflict.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / coherence / coherence-cross-crate-conflict.stderr
CommitLineData
b7449926 1error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`:
60c5eb7d 2 --> $DIR/coherence-cross-crate-conflict.rs:9:1
b7449926
XL
3 |
4LL | impl<A> Foo for A {
5 | ^^^^^^^^^^^^^^^^^
6 |
7 = note: conflicting implementation in crate `trait_impl_conflict`:
1b1a35ee 8 - impl Foo for isize;
b7449926 9
0731742a 10error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g., `MyStruct<A>`)
60c5eb7d 11 --> $DIR/coherence-cross-crate-conflict.rs:9:6
b7449926
XL
12 |
13LL | impl<A> Foo for A {
e74abb32 14 | ^ type parameter `A` must be used as the type parameter for some local type
b7449926 15 |
60c5eb7d 16 = note: implementing a foreign trait is only possible if at least one of the types for which is it implemented is local
b7449926
XL
17 = note: only traits defined in the current crate can be implemented for a type parameter
18
19error: aborting due to 2 previous errors
20
48663c56 21Some errors have detailed explanations: E0119, E0210.
b7449926 22For more information about an error, try `rustc --explain E0119`.