]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/associated-type-projection-ambig-between-bound-and-where-clause.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / associated-types / associated-type-projection-ambig-between-bound-and-where-clause.stderr
1 error[E0221]: ambiguous associated type `Color` in bounds of `C`
2 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:16:24
3 |
4 LL | type Color;
5 | ---------- ambiguous `Color` from `Vehicle`
6 ...
7 LL | type Color;
8 | ---------- ambiguous `Color` from `Box`
9 ...
10 LL | fn a<C:Vehicle+Box>(_: C::Color) {
11 | ^^^^^^^^ ambiguous associated type `Color`
12 |
13 help: use fully qualified syntax to disambiguate
14 |
15 LL | fn a<C:Vehicle+Box>(_: <C as Box>::Color) {
16 | ~~~~~~~~~~~~
17 help: use fully qualified syntax to disambiguate
18 |
19 LL | fn a<C:Vehicle+Box>(_: <C as Vehicle>::Color) {
20 | ~~~~~~~~~~~~~~~~
21
22 error[E0221]: ambiguous associated type `Color` in bounds of `C`
23 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:20:12
24 |
25 LL | type Color;
26 | ---------- ambiguous `Color` from `Vehicle`
27 ...
28 LL | type Color;
29 | ---------- ambiguous `Color` from `Box`
30 ...
31 LL | fn b<C>(_: C::Color) where C : Vehicle+Box {
32 | ^^^^^^^^ ambiguous associated type `Color`
33 |
34 help: use fully qualified syntax to disambiguate
35 |
36 LL | fn b<C>(_: <C as Box>::Color) where C : Vehicle+Box {
37 | ~~~~~~~~~~~~
38 help: use fully qualified syntax to disambiguate
39 |
40 LL | fn b<C>(_: <C as Vehicle>::Color) where C : Vehicle+Box {
41 | ~~~~~~~~~~~~~~~~
42
43 error[E0221]: ambiguous associated type `Color` in bounds of `C`
44 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:24:12
45 |
46 LL | type Color;
47 | ---------- ambiguous `Color` from `Vehicle`
48 ...
49 LL | type Color;
50 | ---------- ambiguous `Color` from `Box`
51 ...
52 LL | fn c<C>(_: C::Color) where C : Vehicle, C : Box {
53 | ^^^^^^^^ ambiguous associated type `Color`
54 |
55 help: use fully qualified syntax to disambiguate
56 |
57 LL | fn c<C>(_: <C as Box>::Color) where C : Vehicle, C : Box {
58 | ~~~~~~~~~~~~
59 help: use fully qualified syntax to disambiguate
60 |
61 LL | fn c<C>(_: <C as Vehicle>::Color) where C : Vehicle, C : Box {
62 | ~~~~~~~~~~~~~~~~
63
64 error[E0221]: ambiguous associated type `Color` in bounds of `X`
65 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:35:20
66 |
67 LL | type Color;
68 | ---------- ambiguous `Color` from `Vehicle`
69 ...
70 LL | type Color;
71 | ---------- ambiguous `Color` from `Box`
72 ...
73 LL | fn e(&self, _: X::Color) where X : Box;
74 | ^^^^^^^^ ambiguous associated type `Color`
75 |
76 help: use fully qualified syntax to disambiguate
77 |
78 LL | fn e(&self, _: <X as Box>::Color) where X : Box;
79 | ~~~~~~~~~~~~
80 help: use fully qualified syntax to disambiguate
81 |
82 LL | fn e(&self, _: <X as Vehicle>::Color) where X : Box;
83 | ~~~~~~~~~~~~~~~~
84
85 error[E0221]: ambiguous associated type `Color` in bounds of `X`
86 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:38:20
87 |
88 LL | type Color;
89 | ---------- ambiguous `Color` from `Vehicle`
90 ...
91 LL | type Color;
92 | ---------- ambiguous `Color` from `Box`
93 ...
94 LL | fn f(&self, _: X::Color) where X : Box { }
95 | ^^^^^^^^ ambiguous associated type `Color`
96 |
97 help: use fully qualified syntax to disambiguate
98 |
99 LL | fn f(&self, _: <X as Box>::Color) where X : Box { }
100 | ~~~~~~~~~~~~
101 help: use fully qualified syntax to disambiguate
102 |
103 LL | fn f(&self, _: <X as Vehicle>::Color) where X : Box { }
104 | ~~~~~~~~~~~~~~~~
105
106 error[E0221]: ambiguous associated type `Color` in bounds of `X`
107 --> $DIR/associated-type-projection-ambig-between-bound-and-where-clause.rs:30:20
108 |
109 LL | type Color;
110 | ---------- ambiguous `Color` from `Vehicle`
111 ...
112 LL | type Color;
113 | ---------- ambiguous `Color` from `Box`
114 ...
115 LL | fn d(&self, _: X::Color) where X : Box { }
116 | ^^^^^^^^ ambiguous associated type `Color`
117 |
118 help: use fully qualified syntax to disambiguate
119 |
120 LL | fn d(&self, _: <X as Box>::Color) where X : Box { }
121 | ~~~~~~~~~~~~
122 help: use fully qualified syntax to disambiguate
123 |
124 LL | fn d(&self, _: <X as Vehicle>::Color) where X : Box { }
125 | ~~~~~~~~~~~~~~~~
126
127 error: aborting due to 6 previous errors
128
129 For more information about this error, try `rustc --explain E0221`.