1
1
error[E0277]: the trait bound `Q: T3` is not satisfied
2
- --> $DIR/bad-trait-error-span-in-call.rs:59 :60
2
+ --> $DIR/bad-trait-error-span-in-call.rs:72 :60
3
3
|
4
4
LL | want(Wrapper { value: Burrito { spicy: false, filling: q } });
5
5
| ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
@@ -25,7 +25,7 @@ LL | fn example<Q: T3>(q: Q) {
25
25
| ++++
26
26
27
27
error[E0277]: the trait bound `Q: T3` is not satisfied
28
- --> $DIR/bad-trait-error-span-in-call.rs:63 :84
28
+ --> $DIR/bad-trait-error-span-in-call.rs:76 :84
29
29
|
30
30
LL | want(Wrapper { value: BurritoKinds::SmallBurrito { spicy: true, small_filling: q } });
31
31
| ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
@@ -51,7 +51,7 @@ LL | fn example<Q: T3>(q: Q) {
51
51
| ++++
52
52
53
53
error[E0277]: the trait bound `Q: T3` is not satisfied
54
- --> $DIR/bad-trait-error-span-in-call.rs:67 :39
54
+ --> $DIR/bad-trait-error-span-in-call.rs:80 :39
55
55
|
56
56
LL | want(Wrapper { value: Taco(false, q) });
57
57
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -79,7 +79,7 @@ LL | fn example<Q: T3>(q: Q) {
79
79
| ++++
80
80
81
81
error[E0277]: the trait bound `Q: T3` is not satisfied
82
- --> $DIR/bad-trait-error-span-in-call.rs:71 :53
82
+ --> $DIR/bad-trait-error-span-in-call.rs:84 :53
83
83
|
84
84
LL | want(Wrapper { value: TacoKinds::OneTaco(false, q) });
85
85
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -107,7 +107,7 @@ LL | fn example<Q: T3>(q: Q) {
107
107
| ++++
108
108
109
109
error[E0277]: the trait bound `Q: T3` is not satisfied
110
- --> $DIR/bad-trait-error-span-in-call.rs:75 :74
110
+ --> $DIR/bad-trait-error-span-in-call.rs:88 :74
111
111
|
112
112
LL | want(Wrapper { value: GenericBurrito { spiciness: NotSpicy, filling: q } });
113
113
| ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
@@ -133,7 +133,7 @@ LL | fn example<Q: T3>(q: Q) {
133
133
| ++++
134
134
135
135
error[E0277]: the trait bound `Q: T3` is not satisfied
136
- --> $DIR/bad-trait-error-span-in-call.rs:79 :31
136
+ --> $DIR/bad-trait-error-span-in-call.rs:92 :31
137
137
|
138
138
LL | want(Wrapper { value: (3, q) });
139
139
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -160,6 +160,82 @@ help: consider restricting type parameter `Q`
160
160
LL | fn example<Q: T3>(q: Q) {
161
161
| ++++
162
162
163
- error: aborting due to 6 previous errors
163
+ error[E0277]: the trait bound `Q: T3` is not satisfied
164
+ --> $DIR/bad-trait-error-span-in-call.rs:96:27
165
+ |
166
+ LL | want(Wrapper { value: AliasBurrito { spiciness: q, filling: q } });
167
+ | ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `T3` is not implemented for `Q`
168
+ | |
169
+ | required by a bound introduced by this call
170
+ |
171
+ note: required for `GenericBurrito<Q, Q>` to implement `T2`
172
+ --> $DIR/bad-trait-error-span-in-call.rs:47:16
173
+ |
174
+ LL | impl<X, Y: T3> T2 for GenericBurrito<X, Y> {}
175
+ | ^^ ^^^^^^^^^^^^^^^^^^^^
176
+ note: required for `Wrapper<GenericBurrito<Q, Q>>` to implement `T1`
177
+ --> $DIR/bad-trait-error-span-in-call.rs:16:13
178
+ |
179
+ LL | impl<B: T2> T1 for Wrapper<B> {}
180
+ | ^^ ^^^^^^^^^^
181
+ note: required by a bound in `want`
182
+ --> $DIR/bad-trait-error-span-in-call.rs:52:12
183
+ |
184
+ LL | fn want<V: T1>(_x: V) {}
185
+ | ^^ required by this bound in `want`
186
+ help: consider restricting type parameter `Q`
187
+ |
188
+ LL | fn example<Q: T3>(q: Q) {
189
+ | ++++
190
+
191
+ error[E0277]: the trait bound `Q: T1` is not satisfied
192
+ --> $DIR/bad-trait-error-span-in-call.rs:99:19
193
+ |
194
+ LL | want(Two { a: Two { a: (), b: q }, b: () });
195
+ | ---- ^^^^^^^^^^^^^^^^^^^ the trait `T1` is not implemented for `Q`
196
+ | |
197
+ | required by a bound introduced by this call
198
+ |
199
+ note: required for `Two<Two<(), Q>, ()>` to implement `T1`
200
+ --> $DIR/bad-trait-error-span-in-call.rs:65:19
201
+ |
202
+ LL | impl<X, Y: T1, Z> T1 for Two<Two<X, Y>, Z> {}
203
+ | ^^ ^^^^^^^^^^^^^^^^^
204
+ note: required by a bound in `want`
205
+ --> $DIR/bad-trait-error-span-in-call.rs:52:12
206
+ |
207
+ LL | fn want<V: T1>(_x: V) {}
208
+ | ^^ required by this bound in `want`
209
+ help: consider restricting type parameter `Q`
210
+ |
211
+ LL | fn example<Q: T1>(q: Q) {
212
+ | ++++
213
+
214
+ error[E0277]: the trait bound `Q: T1` is not satisfied
215
+ --> $DIR/bad-trait-error-span-in-call.rs:105:27
216
+ |
217
+ LL | want(
218
+ | ---- required by a bound introduced by this call
219
+ LL | Two { a: Two { a: (), b: Two { a: Two { a: (), b: q }, b: () } }, b: () },
220
+ | ^^ the trait `T1` is not implemented for `Q`
221
+ |
222
+ note: required for `Two<Two<(), Q>, ()>` to implement `T1`
223
+ --> $DIR/bad-trait-error-span-in-call.rs:65:19
224
+ |
225
+ LL | impl<X, Y: T1, Z> T1 for Two<Two<X, Y>, Z> {}
226
+ | ^^ ^^^^^^^^^^^^^^^^^
227
+ = note: 1 redundant requirement hidden
228
+ = note: required for `Two<Two<(), Two<Two<(), Q>, ()>>, ()>` to implement `T1`
229
+ note: required by a bound in `want`
230
+ --> $DIR/bad-trait-error-span-in-call.rs:52:12
231
+ |
232
+ LL | fn want<V: T1>(_x: V) {}
233
+ | ^^ required by this bound in `want`
234
+ help: consider restricting type parameter `Q`
235
+ |
236
+ LL | fn example<Q: T1>(q: Q) {
237
+ | ++++
238
+
239
+ error: aborting due to 9 previous errors
164
240
165
241
For more information about this error, try `rustc --explain E0277`.
0 commit comments