]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-type/associated-type-projection-from-supertrait.stderr
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / associated-type / associated-type-projection-from-supertrait.stderr
1 error[E0308]: mismatched types
2   --> $DIR/associated-type-projection-from-supertrait.rs:33:23
3    |
4 LL | fn b() { dent(ModelT, Blue); }
5    |                       ^^^^ expected struct `Black`, found struct `Blue`
6    |
7    = note: expected type `Black`
8               found type `Blue`
9
10 error[E0308]: mismatched types
11   --> $DIR/associated-type-projection-from-supertrait.rs:34:23
12    |
13 LL | fn c() { dent(ModelU, Black); }
14    |                       ^^^^^ expected struct `Blue`, found struct `Black`
15    |
16    = note: expected type `Blue`
17               found type `Black`
18
19 error[E0308]: mismatched types
20   --> $DIR/associated-type-projection-from-supertrait.rs:40:28
21    |
22 LL | fn f() { ModelT.chip_paint(Blue); }
23    |                            ^^^^ expected struct `Black`, found struct `Blue`
24    |
25    = note: expected type `Black`
26               found type `Blue`
27
28 error[E0308]: mismatched types
29   --> $DIR/associated-type-projection-from-supertrait.rs:41:28
30    |
31 LL | fn g() { ModelU.chip_paint(Black); }
32    |                            ^^^^^ expected struct `Blue`, found struct `Black`
33    |
34    = note: expected type `Blue`
35               found type `Black`
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0308`.