1error[E0271]: type mismatch resolving `<ModelT as Vehicle>::Color == Blue`
2  --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:31:10
3   |
4LL | fn b() { blue_car(ModelT); }
5   |          ^^^^^^^^ expected struct `Blue`, found struct `Black`
6   |
7note: required by a bound in `blue_car`
8  --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:27:19
9   |
10LL | fn blue_car<C:Car<Color=Blue>>(c: C) {
11   |                   ^^^^^^^^^^ required by this bound in `blue_car`
12
13error[E0271]: type mismatch resolving `<ModelU as Vehicle>::Color == Black`
14  --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:32:10
15   |
16LL | fn c() { black_car(ModelU); }
17   |          ^^^^^^^^^ expected struct `Black`, found struct `Blue`
18   |
19note: required by a bound in `black_car`
20  --> $DIR/associated-types-binding-to-type-defined-in-supertrait.rs:24:20
21   |
22LL | fn black_car<C:Car<Color=Black>>(c: C) {
23   |                    ^^^^^^^^^^^ required by this bound in `black_car`
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0271`.
28