@@ -45,30 +45,70 @@ error[E0207]: the type parameter `U` is not constrained by the impl trait, self
45
45
|
46
46
LL | impl<T, U> Foo<T> for [isize; 1] {
47
47
| ^ unconstrained type parameter
48
+ |
49
+ help: either remove the type parameter U, or make use of it, for example
50
+ |
51
+ LL - impl<T, U> Foo<T> for [isize; 1] {
52
+ LL + impl<T> Foo<T> for [isize; 1] {
53
+ |
54
+ LL | impl<T, U> Foo<T> for [isize<U>; 1] {
55
+ | +++
48
56
49
57
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
50
58
--> $DIR/impl-unused-tps.rs:32:9
51
59
|
52
60
LL | impl<T, U> Bar for T {
53
61
| ^ unconstrained type parameter
62
+ |
63
+ help: either remove the type parameter U, or make use of it, for example
64
+ |
65
+ LL - impl<T, U> Bar for T {
66
+ LL + impl<T> Bar for T {
67
+ |
68
+ LL | impl<T, U> Bar for T<U> {
69
+ | +++
54
70
55
71
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
56
72
--> $DIR/impl-unused-tps.rs:40:9
57
73
|
58
74
LL | impl<T, U> Bar for T
59
75
| ^ unconstrained type parameter
76
+ |
77
+ help: either remove the type parameter U, or make use of it, for example
78
+ |
79
+ LL - impl<T, U> Bar for T
80
+ LL + impl<T> Bar for T
81
+ |
82
+ LL | impl<T, U> Bar for T<U>
83
+ | +++
60
84
61
85
error[E0207]: the type parameter `U` is not constrained by the impl trait, self type, or predicates
62
86
--> $DIR/impl-unused-tps.rs:49:9
63
87
|
64
88
LL | impl<T, U, V> Foo<T> for T
65
89
| ^ unconstrained type parameter
90
+ |
91
+ help: either remove the type parameter U, or make use of it, for example
92
+ |
93
+ LL - impl<T, U, V> Foo<T> for T
94
+ LL + impl<T, V> Foo<T> for T
95
+ |
96
+ LL | impl<T, U, V> Foo<T> for T<U>
97
+ | +++
66
98
67
99
error[E0207]: the type parameter `V` is not constrained by the impl trait, self type, or predicates
68
100
--> $DIR/impl-unused-tps.rs:49:12
69
101
|
70
102
LL | impl<T, U, V> Foo<T> for T
71
103
| ^ unconstrained type parameter
104
+ |
105
+ help: either remove the type parameter V, or make use of it, for example
106
+ |
107
+ LL - impl<T, U, V> Foo<T> for T
108
+ LL + impl<T, U> Foo<T> for T
109
+ |
110
+ LL | impl<T, U, V> Foo<T> for T<V>
111
+ | +++
72
112
73
113
error: aborting due to 9 previous errors
74
114
0 commit comments