2023-10-15 06:40:17 -05:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait` for type `Box<_>`
|
2024-09-21 02:05:19 -05:00
|
|
|
--> $DIR/coherence-overlap-unnormalizable-projection-0.rs:24:1
|
2023-10-15 06:40:17 -05:00
|
|
|
|
|
|
|
|
LL | / impl<T> Trait for T
|
|
|
|
LL | | where
|
|
|
|
LL | | T: 'static,
|
|
|
|
LL | | for<'a> T: WithAssoc<'a>,
|
|
|
|
LL | | for<'a> <T as WithAssoc<'a>>::Assoc: WhereBound,
|
|
|
|
| |____________________________________________________- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl<T> Trait for Box<T> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Box<_>`
|
|
|
|
|
|
|
|
|
= note: downstream crates may implement trait `WithAssoc<'a>` for type `std::boxed::Box<_>`
|
|
|
|
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|