2021-01-08 16:16:24 -06:00
|
|
|
error[E0271]: type mismatch resolving `<() as Super>::Assoc == ()`
|
2022-02-16 09:48:46 -06:00
|
|
|
--> $DIR/projection-mismatch-in-impl-where-clause.rs:13:14
|
2021-01-08 16:16:24 -06:00
|
|
|
|
|
2022-02-16 09:48:46 -06:00
|
|
|
LL | fn test() -> impl Test {
|
|
|
|
| ^^^^^^^^^ type mismatch resolving `<() as Super>::Assoc == ()`
|
2021-01-08 16:16:24 -06:00
|
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
note: expected this to be `u8`
|
2021-12-10 20:20:41 -06:00
|
|
|
--> $DIR/projection-mismatch-in-impl-where-clause.rs:6:18
|
|
|
|
|
|
|
|
|
LL | type Assoc = u8;
|
|
|
|
| ^^
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `()` to implement `Test`
|
2021-04-07 10:31:38 -05:00
|
|
|
--> $DIR/projection-mismatch-in-impl-where-clause.rs:11:9
|
|
|
|
|
|
|
|
|
LL | impl<T> Test for T where T: Super<Assoc = ()> {}
|
2023-01-10 21:21:11 -06:00
|
|
|
| ^^^^ ^ ---------- unsatisfied trait bound introduced here
|
2021-01-08 16:16:24 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|