]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-cross-crate-conflict.stderr
Rollup merge of #53271 - llogiq:simplify-maybe-map, r=joshtriplett
[rust.git] / src / test / ui / coherence / coherence-cross-crate-conflict.stderr
1 error[E0119]: conflicting implementations of trait `trait_impl_conflict::Foo` for type `isize`:
2   --> $DIR/coherence-cross-crate-conflict.rs:18:1
3    |
4 LL | impl<A> Foo for A {
5    | ^^^^^^^^^^^^^^^^^
6    |
7    = note: conflicting implementation in crate `trait_impl_conflict`:
8            - impl trait_impl_conflict::Foo for isize;
9
10 error[E0210]: type parameter `A` must be used as the type parameter for some local type (e.g. `MyStruct<A>`)
11   --> $DIR/coherence-cross-crate-conflict.rs:18:1
12    |
13 LL | impl<A> Foo for A {
14    | ^^^^^^^^^^^^^^^^^ type parameter `A` must be used as the type parameter for some local type
15    |
16    = note: only traits defined in the current crate can be implemented for a type parameter
17
18 error: aborting due to 2 previous errors
19
20 Some errors occurred: E0119, E0210.
21 For more information about an error, try `rustc --explain E0119`.