@@ -10,7 +10,7 @@ LL | fn qux(_: impl std::fmt::Debug) {}
10
10
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
11
11
help: introduce a type parameter with a trait bound instead of using `impl Trait`
12
12
|
13
- LL | fn foo<T : Iterator>(constraints: T ) where <T as std::iter::Iterator>::Item: std::fmt::Debug {
13
+ LL | fn foo<I : Iterator>(constraints: I ) where <I as std::iter::Iterator>::Item: std::fmt::Debug {
14
14
| ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
15
16
16
error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug`
@@ -25,7 +25,7 @@ LL | fn qux(_: impl std::fmt::Debug) {}
25
25
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
26
26
help: introduce a type parameter with a trait bound instead of using `impl Trait`
27
27
|
28
- LL | fn bar<T, U : Iterator>(t: T, constraints: U ) where T: std::fmt::Debug, <U as std::iter::Iterator>::Item: std::fmt::Debug {
28
+ LL | fn bar<T, I : Iterator>(t: T, constraints: I ) where T: std::fmt::Debug, <I as std::iter::Iterator>::Item: std::fmt::Debug {
29
29
| ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
30
31
31
error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug`
@@ -40,7 +40,7 @@ LL | fn qux(_: impl std::fmt::Debug) {}
40
40
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
41
41
help: introduce a type parameter with a trait bound instead of using `impl Trait`
42
42
|
43
- LL | fn baz<T : Iterator>(t: impl std::fmt::Debug, constraints: T ) where <T as std::iter::Iterator>::Item: std::fmt::Debug {
43
+ LL | fn baz<I : Iterator>(t: impl std::fmt::Debug, constraints: I ) where <I as std::iter::Iterator>::Item: std::fmt::Debug {
44
44
| ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
45
46
46
error[E0277]: `<impl Iterator as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug`
@@ -55,7 +55,7 @@ LL | fn qux(_: impl std::fmt::Debug) {}
55
55
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator as std::iter::Iterator>::Item`
56
56
help: introduce a type parameter with a trait bound instead of using `impl Trait`
57
57
|
58
- LL | fn bat<K , T: std::fmt::Debug, U: Iterator>(t: T, constraints: U, _: K ) where <U as std::iter::Iterator>::Item: std::fmt::Debug {
58
+ LL | fn bat<I , T: std::fmt::Debug, U: Iterator>(t: T, constraints: U, _: I ) where <U as std::iter::Iterator>::Item: std::fmt::Debug {
59
59
| ^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
60
61
61
error[E0277]: `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug`
@@ -70,7 +70,7 @@ LL | fn qux(_: impl std::fmt::Debug) {}
70
70
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item`
71
71
help: introduce a type parameter with a trait bound instead of using `impl Trait`
72
72
|
73
- LL | fn bak<T : Iterator + std::fmt::Debug>(constraints: T ) where <T as std::iter::Iterator>::Item: std::fmt::Debug {
73
+ LL | fn bak<I : Iterator + std::fmt::Debug>(constraints: I ) where <I as std::iter::Iterator>::Item: std::fmt::Debug {
74
74
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
75
75
76
76
error: aborting due to 5 previous errors
0 commit comments