]> git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / traits / negative-impls / rely-on-negative-impl-in-coherence.stderr
1 error[E0119]: conflicting implementations of trait `LocalTrait` for type `std::string::String`:
2 --> $DIR/rely-on-negative-impl-in-coherence.rs:19:1
3 |
4 LL | impl<T: ForeignTrait> LocalTrait for T { }
5 | -------------------------------------- first implementation here
6 LL | impl LocalTrait for String { }
7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::string::String`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0119`.