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;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-02-14 16:10:22 +00:00
|
|
|
error[E0119]: conflicting implementations of trait `AnotherTrait` for type `D<OpaqueType>`
|
2021-07-26 17:01:16 -03:00
|
|
|
--> $DIR/negative-reasoning.rs:19:1
|
|
|
|
|
|
|
|
|
LL | impl<T: std::fmt::Debug> AnotherTrait for T {}
|
|
|
|
| ------------------------------------------- first implementation here
|
|
|
|
...
|
|
|
|
LL | impl AnotherTrait for D<OpaqueType> {
|
2022-02-14 16:10:22 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `D<OpaqueType>`
|
2021-07-26 17:01:16 -03:00
|
|
|
|
|
2022-02-14 16:10:22 +00:00
|
|
|
= note: upstream crates may add a new impl of trait `std::fmt::Debug` for type `OpaqueType` in future versions
|
2021-07-26 17:01:16 -03:00
|
|
|
|
2021-07-22 20:21:48 +02:00
|
|
|
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`.
|