2022-07-02 08:37:49 -05:00
|
|
|
error[E0271]: type mismatch resolving `<Concrete as Bar>::Other == Concrete`
|
2022-07-16 20:35:56 -05:00
|
|
|
--> $DIR/issue-99348-impl-compatibility.rs:8:17
|
|
|
|
|
|
|
|
|
LL | type Tait = impl Sized;
|
2022-07-02 08:37:49 -05:00
|
|
|
| ---------- the found opaque type
|
2022-07-16 20:35:56 -05:00
|
|
|
...
|
|
|
|
LL | type Item = Concrete;
|
2022-07-02 08:37:49 -05:00
|
|
|
| ^^^^^^^^ type mismatch resolving `<Concrete as Bar>::Other == Concrete`
|
2022-07-16 20:35:56 -05:00
|
|
|
|
|
2022-07-02 08:37:49 -05:00
|
|
|
note: expected this to be `Concrete`
|
|
|
|
--> $DIR/issue-99348-impl-compatibility.rs:13:18
|
|
|
|
|
|
|
|
|
LL | type Other = Tait;
|
|
|
|
| ^^^^
|
|
|
|
= note: expected struct `Concrete`
|
|
|
|
found opaque type `Tait`
|
|
|
|
note: required by a bound in `Foo::Item`
|
|
|
|
--> $DIR/issue-99348-impl-compatibility.rs:17:20
|
|
|
|
|
|
|
|
|
LL | type Item: Bar<Other = Self>;
|
|
|
|
| ^^^^^^^^^^^^ required by this bound in `Foo::Item`
|
2022-07-16 20:35:56 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-07-16 20:35:56 -05:00
|
|
|
|
2022-07-02 08:37:49 -05:00
|
|
|
For more information about this error, try `rustc --explain E0271`.
|