1
1
error[E0277]: the trait bound `Q: T3` is not satisfied
2
- --> $DIR/blame-trait-error.rs:49 :60
2
+ --> $DIR/blame-trait-error.rs:51 :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`
@@ -15,7 +15,7 @@ note: required for `Wrapper<Burrito<Q>>` to implement `T1`
15
15
LL | impl<B: T2> T1 for Wrapper<B> {}
16
16
| ^^ ^^^^^^^^^^
17
17
note: required by a bound in `want`
18
- --> $DIR/blame-trait-error.rs:46 :12
18
+ --> $DIR/blame-trait-error.rs:48 :12
19
19
|
20
20
LL | fn want<V: T1>(_x: V) {}
21
21
| ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:52 :84
28
+ --> $DIR/blame-trait-error.rs:54 :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`
@@ -41,7 +41,7 @@ note: required for `Wrapper<BurritoKinds<Q>>` to implement `T1`
41
41
LL | impl<B: T2> T1 for Wrapper<B> {}
42
42
| ^^ ^^^^^^^^^^
43
43
note: required by a bound in `want`
44
- --> $DIR/blame-trait-error.rs:46 :12
44
+ --> $DIR/blame-trait-error.rs:48 :12
45
45
|
46
46
LL | fn want<V: T1>(_x: V) {}
47
47
| ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:55 :39
54
+ --> $DIR/blame-trait-error.rs:57 :39
55
55
|
56
56
LL | want(Wrapper { value: Taco(false, q) });
57
57
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -69,7 +69,7 @@ note: required for `Wrapper<Taco<Q>>` to implement `T1`
69
69
LL | impl<B: T2> T1 for Wrapper<B> {}
70
70
| ^^ ^^^^^^^^^^
71
71
note: required by a bound in `want`
72
- --> $DIR/blame-trait-error.rs:46 :12
72
+ --> $DIR/blame-trait-error.rs:48 :12
73
73
|
74
74
LL | fn want<V: T1>(_x: V) {}
75
75
| ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:58 :53
82
+ --> $DIR/blame-trait-error.rs:60 :53
83
83
|
84
84
LL | want(Wrapper { value: TacoKinds::OneTaco(false, q) });
85
85
| ---- ^ the trait `T3` is not implemented for `Q`
@@ -97,7 +97,7 @@ note: required for `Wrapper<TacoKinds<Q>>` to implement `T1`
97
97
LL | impl<B: T2> T1 for Wrapper<B> {}
98
98
| ^^ ^^^^^^^^^^
99
99
note: required by a bound in `want`
100
- --> $DIR/blame-trait-error.rs:46 :12
100
+ --> $DIR/blame-trait-error.rs:48 :12
101
101
|
102
102
LL | fn want<V: T1>(_x: V) {}
103
103
| ^^ required by this bound in `want`
@@ -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/blame-trait-error.rs:61 :74
110
+ --> $DIR/blame-trait-error.rs:63 :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`
@@ -123,7 +123,7 @@ note: required for `Wrapper<GenericBurrito<NotSpicy, Q>>` to implement `T1`
123
123
LL | impl<B: T2> T1 for Wrapper<B> {}
124
124
| ^^ ^^^^^^^^^^
125
125
note: required by a bound in `want`
126
- --> $DIR/blame-trait-error.rs:46 :12
126
+ --> $DIR/blame-trait-error.rs:48 :12
127
127
|
128
128
LL | fn want<V: T1>(_x: V) {}
129
129
| ^^ required by this bound in `want`
@@ -132,6 +132,34 @@ help: consider restricting type parameter `Q`
132
132
LL | fn example<Q: T3>(q: Q) {
133
133
| ++++
134
134
135
- error: aborting due to 5 previous errors
135
+ error[E0277]: the trait bound `Q: T3` is not satisfied
136
+ --> $DIR/blame-trait-error.rs:66:31
137
+ |
138
+ LL | want(Wrapper { value: (3, q) });
139
+ | ---- ^ the trait `T3` is not implemented for `Q`
140
+ | |
141
+ | required by a bound introduced by this call
142
+ |
143
+ note: required for `(i32, Q)` to implement `T2`
144
+ --> $DIR/blame-trait-error.rs:46:20
145
+ |
146
+ LL | impl<A: T3, B: T3> T2 for (A, B) {}
147
+ | ^^ ^^^^^^
148
+ note: required for `Wrapper<(i32, Q)>` to implement `T1`
149
+ --> $DIR/blame-trait-error.rs:12:13
150
+ |
151
+ LL | impl<B: T2> T1 for Wrapper<B> {}
152
+ | ^^ ^^^^^^^^^^
153
+ note: required by a bound in `want`
154
+ --> $DIR/blame-trait-error.rs:48:12
155
+ |
156
+ LL | fn want<V: T1>(_x: V) {}
157
+ | ^^ required by this bound in `want`
158
+ help: consider restricting type parameter `Q`
159
+ |
160
+ LL | fn example<Q: T3>(q: Q) {
161
+ | ++++
162
+
163
+ error: aborting due to 6 previous errors
136
164
137
165
For more information about this error, try `rustc --explain E0277`.
0 commit comments