blob: 4bc09b624c8a186d1fd202f553683ecbca300d7c [file] [log] [blame]
error[E0308]: mismatched types
--> $DIR/associated-type-projection-from-supertrait.rs:43:23
|
LL | fn b() { dent(ModelT, Blue); } //~ ERROR mismatched types
| ^^^^ expected struct `Black`, found struct `Blue`
|
= note: expected type `Black`
found type `Blue`
error[E0308]: mismatched types
--> $DIR/associated-type-projection-from-supertrait.rs:44:23
|
LL | fn c() { dent(ModelU, Black); } //~ ERROR mismatched types
| ^^^^^ expected struct `Blue`, found struct `Black`
|
= note: expected type `Blue`
found type `Black`
error[E0308]: mismatched types
--> $DIR/associated-type-projection-from-supertrait.rs:50:28
|
LL | fn f() { ModelT.chip_paint(Blue); } //~ ERROR mismatched types
| ^^^^ expected struct `Black`, found struct `Blue`
|
= note: expected type `Black`
found type `Blue`
error[E0308]: mismatched types
--> $DIR/associated-type-projection-from-supertrait.rs:51:28
|
LL | fn g() { ModelU.chip_paint(Black); } //~ ERROR mismatched types
| ^^^^^ expected struct `Blue`, found struct `Black`
|
= note: expected type `Blue`
found type `Black`
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0308`.