11error[E0277]: the trait bound `Q: T3` is not satisfied
2- --> $DIR/blame-trait-error.rs:42 :60
2+ --> $DIR/blame-trait-error.rs:49 :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`
@@ -15,7 +15,7 @@ note: required for `Wrapper<Burrito<Q>>` to implement `T1`
1515LL | impl<B: T2> T1 for Wrapper<B> {}
1616 | ^^ ^^^^^^^^^^
1717note: required by a bound in `want`
18- --> $DIR/blame-trait-error.rs:39 :12
18+ --> $DIR/blame-trait-error.rs:46 :12
1919 |
2020LL | fn want<V: T1>(_x: V) {}
2121 | ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:45 :84
28+ --> $DIR/blame-trait-error.rs:52 :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`
@@ -41,7 +41,7 @@ note: required for `Wrapper<BurritoKinds<Q>>` to implement `T1`
4141LL | impl<B: T2> T1 for Wrapper<B> {}
4242 | ^^ ^^^^^^^^^^
4343note: required by a bound in `want`
44- --> $DIR/blame-trait-error.rs:39 :12
44+ --> $DIR/blame-trait-error.rs:46 :12
4545 |
4646LL | fn want<V: T1>(_x: V) {}
4747 | ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:48 :39
54+ --> $DIR/blame-trait-error.rs:55 :39
5555 |
5656LL | want(Wrapper { value: Taco(false, q) });
5757 | ---- ^ the trait `T3` is not implemented for `Q`
@@ -69,7 +69,7 @@ note: required for `Wrapper<Taco<Q>>` to implement `T1`
6969LL | impl<B: T2> T1 for Wrapper<B> {}
7070 | ^^ ^^^^^^^^^^
7171note: required by a bound in `want`
72- --> $DIR/blame-trait-error.rs:39 :12
72+ --> $DIR/blame-trait-error.rs:46 :12
7373 |
7474LL | fn want<V: T1>(_x: V) {}
7575 | ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:51 :53
82+ --> $DIR/blame-trait-error.rs:58 :53
8383 |
8484LL | want(Wrapper { value: TacoKinds::OneTaco(false, q) });
8585 | ---- ^ the trait `T3` is not implemented for `Q`
@@ -97,7 +97,7 @@ note: required for `Wrapper<TacoKinds<Q>>` to implement `T1`
9797LL | impl<B: T2> T1 for Wrapper<B> {}
9898 | ^^ ^^^^^^^^^^
9999note: required by a bound in `want`
100- --> $DIR/blame-trait-error.rs:39 :12
100+ --> $DIR/blame-trait-error.rs:46 :12
101101 |
102102LL | fn want<V: T1>(_x: V) {}
103103 | ^^ required by this bound in `want`
@@ -106,6 +106,32 @@ help: consider restricting type parameter `Q`
106106LL | fn example<Q: T3>(q: Q) {
107107 | ++++
108108
109- error: aborting due to 4 previous errors
109+ error[E0277]: the trait bound `Q: T3` is not satisfied
110+ --> $DIR/blame-trait-error.rs:61:74
111+ |
112+ LL | want(Wrapper { value: GenericBurrito { spiciness: NotSpicy, filling: q } });
113+ | ---- required by a bound introduced by this call ^ the trait `T3` is not implemented for `Q`
114+ |
115+ note: required for `GenericBurrito<NotSpicy, Q>` to implement `T2`
116+ --> $DIR/blame-trait-error.rs:43:16
117+ |
118+ LL | impl<X, Y: T3> T2 for GenericBurrito<X, Y> {}
119+ | ^^ ^^^^^^^^^^^^^^^^^^^^
120+ note: required for `Wrapper<GenericBurrito<NotSpicy, Q>>` to implement `T1`
121+ --> $DIR/blame-trait-error.rs:12:13
122+ |
123+ LL | impl<B: T2> T1 for Wrapper<B> {}
124+ | ^^ ^^^^^^^^^^
125+ note: required by a bound in `want`
126+ --> $DIR/blame-trait-error.rs:46:12
127+ |
128+ LL | fn want<V: T1>(_x: V) {}
129+ | ^^ required by this bound in `want`
130+ help: consider restricting type parameter `Q`
131+ |
132+ LL | fn example<Q: T3>(q: Q) {
133+ | ++++
134+
135+ error: aborting due to 5 previous errors
110136
111137For more information about this error, try `rustc --explain E0277`.
0 commit comments