rust/src/test/ui/coherence/coherence-overlap-issue-23516.old.stderr

14 lines
564 B
Plaintext
Raw Normal View History

error[E0119]: conflicting implementations of trait `Sweet` for type `std::boxed::Box<_>`:
2018-12-28 19:13:06 -06:00
--> $DIR/coherence-overlap-issue-23516.rs:12:1
|
2018-02-22 18:42:32 -06:00
LL | impl<T:Sugar> Sweet for T { }
| ------------------------- first implementation here
2018-02-22 18:42:32 -06:00
LL | impl<U:Sugar> Sweet for Box<U> { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::boxed::Box<_>`
|
= note: downstream crates may implement trait `Sugar` for type `std::boxed::Box<_>`
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0119`.