2024-02-26 03:19:11 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `Trait<_>`
|
2024-02-02 02:36:46 -06:00
|
|
|
--> $DIR/opaques.rs:30:1
|
2023-10-23 09:53:11 -05:00
|
|
|
|
|
|
|
|
LL | impl<T> Trait<T> for T {
|
|
|
|
| ---------------------- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl<T> Trait<T> for defining_scope::Alias<T> {
|
2024-02-26 03:19:11 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation
|
2023-10-23 09:53:11 -05:00
|
|
|
|
2024-02-02 02:36:46 -06:00
|
|
|
error[E0282]: type annotations needed
|
|
|
|
--> $DIR/opaques.rs:13:20
|
|
|
|
|
|
|
|
|
LL | pub fn cast<T>(x: Container<Alias<T>, T>) -> Container<T, T> {
|
2024-05-01 15:03:26 -05:00
|
|
|
| ^ cannot infer type for associated type `<T as Trait<T>>::Assoc`
|
2024-02-02 02:36:46 -06:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-10-23 09:53:11 -05:00
|
|
|
|
2024-02-02 02:36:46 -06:00
|
|
|
Some errors have detailed explanations: E0119, E0282.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|