1
1
error[E0277]: the trait bound `Q: T3` is not satisfied
2
- --> $DIR/blame-trait-error-spans-on-exprs.rs:79 :60
2
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:81 :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`
@@ -29,7 +29,7 @@ LL | fn example<Q: T3>(q: Q) {
29
29
| ++++
30
30
31
31
error[E0277]: the trait bound `Q: T3` is not satisfied
32
- --> $DIR/blame-trait-error-spans-on-exprs.rs:83 :84
32
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:85 :84
33
33
|
34
34
LL | want(Wrapper { value: BurritoKinds::SmallBurrito { spicy: true, small_filling: q } });
35
35
| ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
@@ -59,7 +59,7 @@ LL | fn example<Q: T3>(q: Q) {
59
59
| ++++
60
60
61
61
error[E0277]: the trait bound `Q: T3` is not satisfied
62
- --> $DIR/blame-trait-error-spans-on-exprs.rs:87 :39
62
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:89 :39
63
63
|
64
64
LL | want(Wrapper { value: Taco(false, q) });
65
65
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -91,7 +91,7 @@ LL | fn example<Q: T3>(q: Q) {
91
91
| ++++
92
92
93
93
error[E0277]: the trait bound `Q: T3` is not satisfied
94
- --> $DIR/blame-trait-error-spans-on-exprs.rs:91 :27
94
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:93 :27
95
95
|
96
96
LL | want(Wrapper { value: TacoKinds::OneTaco(false, q) });
97
97
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `T3` is not implemented for `Q`
@@ -123,7 +123,7 @@ LL | fn example<Q: T3>(q: Q) {
123
123
| ++++
124
124
125
125
error[E0277]: the trait bound `Q: T3` is not satisfied
126
- --> $DIR/blame-trait-error-spans-on-exprs.rs:95 :74
126
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:97 :74
127
127
|
128
128
LL | want(Wrapper { value: GenericBurrito { spiciness: NotSpicy, filling: q } });
129
129
| ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
@@ -153,7 +153,7 @@ LL | fn example<Q: T3>(q: Q) {
153
153
| ++++
154
154
155
155
error[E0277]: the trait bound `Q: T2` is not satisfied
156
- --> $DIR/blame-trait-error-spans-on-exprs.rs:99 :14
156
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:101 :14
157
157
|
158
158
LL | want((3, q));
159
159
| ---- ^ the trait `T2` is not implemented for `Q`
@@ -178,7 +178,7 @@ LL | fn example<Q: T2>(q: Q) {
178
178
| ++++
179
179
180
180
error[E0277]: the trait bound `Q: T3` is not satisfied
181
- --> $DIR/blame-trait-error-spans-on-exprs.rs:103 :31
181
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:105 :31
182
182
|
183
183
LL | want(Wrapper { value: (3, q) });
184
184
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -210,7 +210,7 @@ LL | fn example<Q: T3>(q: Q) {
210
210
| ++++
211
211
212
212
error[E0277]: the trait bound `Q: T3` is not satisfied
213
- --> $DIR/blame-trait-error-spans-on-exprs.rs:107 :15
213
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:109 :15
214
214
|
215
215
LL | want(((3, q), 5));
216
216
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -242,7 +242,7 @@ LL | fn example<Q: T3>(q: Q) {
242
242
| ++++
243
243
244
244
error[E0277]: the trait bound `Q: T1` is not satisfied
245
- --> $DIR/blame-trait-error-spans-on-exprs.rs:110 :49
245
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:112 :49
246
246
|
247
247
LL | want(DoubleWrapper { item: Wrapper { value: q } });
248
248
| ---- ^ the trait `T1` is not implemented for `Q`
@@ -267,7 +267,7 @@ LL | fn example<Q: T1>(q: Q) {
267
267
| ++++
268
268
269
269
error[E0277]: the trait bound `Q: T1` is not satisfied
270
- --> $DIR/blame-trait-error-spans-on-exprs.rs:113 :88
270
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:115 :88
271
271
|
272
272
LL | want(DoubleWrapper { item: Wrapper { value: DoubleWrapper { item: Wrapper { value: q } } } });
273
273
| ---- required by a bound introduced by this call ^ the trait `T1` is not implemented for `Q`
@@ -292,7 +292,7 @@ LL | fn example<Q: T1>(q: Q) {
292
292
| ++++
293
293
294
294
error[E0277]: the trait bound `Q: T3` is not satisfied
295
- --> $DIR/blame-trait-error-spans-on-exprs.rs:117 :27
295
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:119 :27
296
296
|
297
297
LL | want(Wrapper { value: AliasBurrito { spiciness: q, filling: q } });
298
298
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `T3` is not implemented for `Q`
@@ -324,7 +324,7 @@ LL | fn example<Q: T3>(q: Q) {
324
324
| ++++
325
325
326
326
error[E0277]: the trait bound `Q: T1` is not satisfied
327
- --> $DIR/blame-trait-error-spans-on-exprs.rs:120 :35
327
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:122 :35
328
328
|
329
329
LL | want(Two { a: Two { a: (), b: q }, b: () });
330
330
| ---- ^ the trait `T1` is not implemented for `Q`
@@ -349,7 +349,7 @@ LL | fn example<Q: T1>(q: Q) {
349
349
| ++++
350
350
351
351
error[E0277]: the trait bound `Q: T1` is not satisfied
352
- --> $DIR/blame-trait-error-spans-on-exprs.rs:126 :59
352
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:128 :59
353
353
|
354
354
LL | want(
355
355
| ---- required by a bound introduced by this call
@@ -375,6 +375,38 @@ help: consider restricting type parameter `Q`
375
375
LL | fn example<Q: T1>(q: Q) {
376
376
| ++++
377
377
378
- error: aborting due to 13 previous errors
378
+ error[E0277]: the trait bound `Q: T3` is not satisfied
379
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:133:44
380
+ |
381
+ LL | want(&Burrito { spicy: false, filling: q });
382
+ | ---- ^ the trait `T3` is not implemented for `Q`
383
+ | |
384
+ | required by a bound introduced by this call
385
+ |
386
+ note: required for `Burrito<Q>` to implement `T2`
387
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:22:13
388
+ |
389
+ LL | impl<A: T3> T2 for Burrito<A> {}
390
+ | -- ^^ ^^^^^^^^^^
391
+ | |
392
+ | unsatisfied trait bound introduced here
393
+ note: required for `&Burrito<Q>` to implement `T1`
394
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:74:17
395
+ |
396
+ LL | impl<'a, T: T2> T1 for &'a T {}
397
+ | -- ^^ ^^^^^
398
+ | |
399
+ | unsatisfied trait bound introduced here
400
+ note: required by a bound in `want`
401
+ --> $DIR/blame-trait-error-spans-on-exprs.rs:53:12
402
+ |
403
+ LL | fn want<V: T1>(_x: V) {}
404
+ | ^^ required by this bound in `want`
405
+ help: consider restricting type parameter `Q`
406
+ |
407
+ LL | fn example<Q: T3>(q: Q) {
408
+ | ++++
409
+
410
+ error: aborting due to 14 previous errors
379
411
380
412
For more information about this error, try `rustc --explain E0277`.
0 commit comments