]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr
Auto merge of #93860 - ehuss:update-rls, r=ehuss
[rust.git] / src / test / 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:14:5
3    |
4 LL |     ()
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 because of the requirements on the impl of `Test` for `()`
13   --> $DIR/projection-mismatch-in-impl-where-clause.rs:11:9
14    |
15 LL | impl<T> Test for T where T: Super<Assoc = ()> {}
16    |         ^^^^     ^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0271`.