]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/negative-impls/rely-on-negative-impl-in-coherence.stderr
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[rust.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`.