]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/projection-mismatch-in-impl-where-clause.stderr
New upstream version 1.53.0+dfsg1
[rustc.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:13:14
3 |
4 LL | fn test() -> impl Test {
5 | ^^^^^^^^^ expected `()`, found `u8`
6 |
7 note: required because of the requirements on the impl of `Test` for `()`
8 --> $DIR/projection-mismatch-in-impl-where-clause.rs:11:9
9 |
10 LL | impl<T> Test for T where T: Super<Assoc = ()> {}
11 | ^^^^ ^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0271`.