]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr
feat(rustdoc): open sidebar menu when links inside it are focused
[rust.git] / src / test / ui / associated-types / associated-types-binding-to-type-defined-in-supertrait.stderr
1 error[E0271]: type mismatch resolving `<ModelT as Vehicle>::Color == Blue`
2   --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:31:10
3    |
4 LL | fn blue_car<C:Car<Color=Blue>>(c: C) {
5    |                   ---------- required by this bound in `blue_car`
6 ...
7 LL | fn b() { blue_car(ModelT); }
8    |          ^^^^^^^^ expected struct `Blue`, found struct `Black`
9
10 error[E0271]: type mismatch resolving `<ModelU as Vehicle>::Color == Black`
11   --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:32:10
12    |
13 LL | fn black_car<C:Car<Color=Black>>(c: C) {
14    |                    ----------- required by this bound in `black_car`
15 ...
16 LL | fn c() { black_car(ModelU); }
17    |          ^^^^^^^^^ expected struct `Black`, found struct `Blue`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0271`.