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