11error[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
33 |
44LL | want(Wrapper { value: Burrito { spicy: false, filling: q } });
55 | ---- 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) {
2525 | ++++
2626
2727error[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
2929 |
3030LL | want(Wrapper { value: BurritoKinds::SmallBurrito { spicy: true, small_filling: q } });
3131 | ---- 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) {
5151 | ++++
5252
5353error[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
5555 |
5656LL | want(Wrapper { value: Taco(false, q) });
5757 | ---- ^ the trait `T3` is not implemented for `Q`
@@ -79,7 +79,7 @@ LL | fn example<Q: T3>(q: Q) {
7979 | ++++
8080
8181error[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
8383 |
8484LL | want(Wrapper { value: TacoKinds::OneTaco(false, q) });
8585 | ---- ^ the trait `T3` is not implemented for `Q`
@@ -107,7 +107,7 @@ LL | fn example<Q: T3>(q: Q) {
107107 | ++++
108108
109109error[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
111111 |
112112LL | want(Wrapper { value: GenericBurrito { spiciness: NotSpicy, filling: q } });
113113 | ---- 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) {
133133 | ++++
134134
135135error[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
137137 |
138138LL | want(Wrapper { value: (3, q) });
139139 | ---- ^ the trait `T3` is not implemented for `Q`
@@ -160,6 +160,82 @@ help: consider restricting type parameter `Q`
160160LL | fn example<Q: T3>(q: Q) {
161161 | ++++
162162
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
164240
165241For more information about this error, try `rustc --explain E0277`.
0 commit comments