]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-type-projection-from-supertrait.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-type-projection-from-supertrait.stderr
1 error[E0308]: mismatched types
2 --> $DIR/associated-type-projection-from-supertrait.rs:27:23
3 |
4 LL | fn b() { dent(ModelT, Blue); }
5 | ---- ^^^^ expected struct `Black`, found struct `Blue`
6 | |
7 | arguments to this function are incorrect
8 |
9 note: function defined here
10 --> $DIR/associated-type-projection-from-supertrait.rs:25:4
11 |
12 LL | fn dent<C:Car>(c: C, color: C::Color) { c.chip_paint(color) }
13 | ^^^^ ---- ---------------
14
15 error[E0308]: mismatched types
16 --> $DIR/associated-type-projection-from-supertrait.rs:28:23
17 |
18 LL | fn c() { dent(ModelU, Black); }
19 | ---- ^^^^^ expected struct `Blue`, found struct `Black`
20 | |
21 | arguments to this function are incorrect
22 |
23 note: function defined here
24 --> $DIR/associated-type-projection-from-supertrait.rs:25:4
25 |
26 LL | fn dent<C:Car>(c: C, color: C::Color) { c.chip_paint(color) }
27 | ^^^^ ---- ---------------
28
29 error[E0308]: mismatched types
30 --> $DIR/associated-type-projection-from-supertrait.rs:32:28
31 |
32 LL | fn f() { ModelT.chip_paint(Blue); }
33 | ---------- ^^^^ expected struct `Black`, found struct `Blue`
34 | |
35 | arguments to this function are incorrect
36 |
37 note: associated function defined here
38 --> $DIR/associated-type-projection-from-supertrait.rs:12:8
39 |
40 LL | fn chip_paint(&self, c: Self::Color) { }
41 | ^^^^^^^^^^ ----- --------------
42
43 error[E0308]: mismatched types
44 --> $DIR/associated-type-projection-from-supertrait.rs:33:28
45 |
46 LL | fn g() { ModelU.chip_paint(Black); }
47 | ---------- ^^^^^ expected struct `Blue`, found struct `Black`
48 | |
49 | arguments to this function are incorrect
50 |
51 note: associated function defined here
52 --> $DIR/associated-type-projection-from-supertrait.rs:12:8
53 |
54 LL | fn chip_paint(&self, c: Self::Color) { }
55 | ^^^^^^^^^^ ----- --------------
56
57 error: aborting due to 4 previous errors
58
59 For more information about this error, try `rustc --explain E0308`.