@@ -17,6 +17,22 @@ LL | <(i32,) as X<i32>>::f("abc");
17
17
|
18
18
= help: the trait `X<'_, T>` is implemented for `(S,)`
19
19
20
+ error[E0277]: the trait bound `for<'b> i32: X<'b, i32>` is not satisfied
21
+ --> $DIR/hr-associated-type-bound-param-6.rs:18:18
22
+ |
23
+ LL | <(i32,) as X<i32>>::f("abc");
24
+ | ^^^ the trait `for<'b> X<'b, i32>` is not implemented for `i32`
25
+ |
26
+ = help: the trait `X<'_, T>` is implemented for `(S,)`
27
+ note: required by a bound in `X::f`
28
+ --> $DIR/hr-associated-type-bound-param-6.rs:3:16
29
+ |
30
+ LL | for<'b> T: X<'b, T>,
31
+ | ^^^^^^^^ required by this bound in `X::f`
32
+ ...
33
+ LL | fn f(x: &<T as X<'_, T>>::U) {
34
+ | - required by a bound in this associated function
35
+
20
36
error[E0277]: the trait bound `i32: X<'_, i32>` is not satisfied
21
37
--> $DIR/hr-associated-type-bound-param-6.rs:18:27
22
38
|
@@ -25,6 +41,6 @@ LL | <(i32,) as X<i32>>::f("abc");
25
41
|
26
42
= help: the trait `X<'_, T>` is implemented for `(S,)`
27
43
28
- error: aborting due to 3 previous errors
44
+ error: aborting due to 4 previous errors
29
45
30
46
For more information about this error, try `rustc --explain E0277`.
0 commit comments