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