]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / impl-trait / projection-mismatch-in-impl-where-clause.stderr
1 error[E0271]: type mismatch resolving `<() as Super>::Assoc == ()`
2   --> $DIR/projection-mismatch-in-impl-where-clause.rs:13:14
3    |
4 LL | fn test() -> impl Test {
5    |              ^^^^^^^^^ type mismatch resolving `<() as Super>::Assoc == ()`
6    |
7 note: expected this to be `u8`
8   --> $DIR/projection-mismatch-in-impl-where-clause.rs:6:18
9    |
10 LL |     type Assoc = u8;
11    |                  ^^
12 note: required for `()` to implement `Test`
13   --> $DIR/projection-mismatch-in-impl-where-clause.rs:11:9
14    |
15 LL | impl<T> Test for T where T: Super<Assoc = ()> {}
16    |         ^^^^     ^                ---------- unsatisfied trait bound introduced here
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.