2021-05-09 20:53:13 +02:00
|
|
|
error[E0119]: conflicting implementations of trait `AnotherTrait` for type `D<OpaqueType>`
|
|
|
|
--> $DIR/negative-reasoning.rs:19:1
|
|
|
|
|
|
|
|
|
LL | impl<T: std::fmt::Debug> AnotherTrait for T {}
|
|
|
|
| ------------------------------------------- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl AnotherTrait for D<OpaqueType> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `D<OpaqueType>`
|
|
|
|
|
|
2022-07-21 10:53:54 +02:00
|
|
|
= note: downstream crates may implement trait `std::fmt::Debug` for type `OpaqueType`
|
2021-05-09 20:53:13 +02:00
|
|
|
|
2021-07-22 20:21:48 +02:00
|
|
|
error: cannot implement trait on type alias impl trait
|
2022-04-12 12:28:31 +00:00
|
|
|
--> $DIR/negative-reasoning.rs:19:25
|
2021-07-22 20:21:48 +02:00
|
|
|
|
|
|
|
|
LL | impl AnotherTrait for D<OpaqueType> {
|
2022-04-12 12:28:31 +00:00
|
|
|
| ^^^^^^^^^^
|
2021-07-22 20:21:48 +02:00
|
|
|
|
|
|
|
|
note: type alias impl trait defined here
|
|
|
|
--> $DIR/negative-reasoning.rs:7:19
|
|
|
|
|
|
|
|
|
LL | type OpaqueType = impl OpaqueTrait;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-07-26 17:01:16 -03:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0119`.
|