about summary refs log tree commit diff
path: root/tests/ui/traits/negative-impls/ambiguity-cause.negative_coherence.stderr
blob: 4ec3414a57bcc6b217c8cf30c159aa3c50cfa3f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0119]: conflicting implementations of trait `MyTrait` for type `String`
  --> $DIR/ambiguity-cause.rs:10:1
   |
LL | impl<T: Copy> MyTrait for T { }
   | --------------------------- first implementation here
LL |
LL | impl MyTrait for String { }
   | ^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `String`
   |
   = note: upstream crates may add a new impl of trait `std::marker::Copy` for type `std::string::String` in future versions

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0119`.