]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/associated-types-binding-to-type-defined-in-supertrait.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-types-binding-to-type-defined-in-supertrait.stderr
CommitLineData
b7449926 1error[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
4LL | fn blue_car<C:Car<Color=Blue>>(c: C) {
5 | -------- ---------- required by this bound in `blue_car`
6...
532ac7d7 7LL | fn b() { blue_car(ModelT); }
e74abb32 8 | ^^^^^^^^ expected struct `Blue`, found struct `Black`
b7449926
XL
9
10error[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
13LL | fn black_car<C:Car<Color=Black>>(c: C) {
14 | --------- ----------- required by this bound in `black_car`
15...
532ac7d7 16LL | fn c() { black_car(ModelU); }
e74abb32 17 | ^^^^^^^^^ expected struct `Black`, found struct `Blue`
b7449926
XL
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0271`.