|
| 1 | +error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` |
| 2 | + --> $DIR/impl-trait-with-missing-bounds.rs:6:13 |
| 3 | + | |
| 4 | +LL | qux(constraint); |
| 5 | + | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
| 6 | + | | |
| 7 | + | required by a bound introduced by this call |
| 8 | + | |
| 9 | + = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` |
| 10 | +note: required by a bound in `qux` |
| 11 | + --> $DIR/impl-trait-with-missing-bounds.rs:50:16 |
| 12 | + | |
| 13 | +LL | fn qux(_: impl std::fmt::Debug) {} |
| 14 | + | ^^^^^^^^^^^^^^^ required by this bound in `qux` |
| 15 | +help: introduce a type parameter with a trait bound instead of using `impl Trait` |
| 16 | + | |
| 17 | +LL | fn foo<I: Iterator>(constraints: I) where <I as Iterator>::Item: Debug { |
| 18 | + | +++++++++++++ ~ ++++++++++++++++++++++++++++++++++ |
| 19 | + |
1 | 20 | error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug`
|
2 | 21 | --> $DIR/impl-trait-with-missing-bounds.rs:14:13
|
3 | 22 | |
|
@@ -74,25 +93,6 @@ help: introduce a type parameter with a trait bound instead of using `impl Trait
|
74 | 93 | LL | fn bak<I: Iterator + std::fmt::Debug>(constraints: I) where <I as Iterator>::Item: Debug {
|
75 | 94 | | +++++++++++++++++++++++++++++++ ~ ++++++++++++++++++++++++++++++++++
|
76 | 95 |
|
77 |
| -error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug` |
78 |
| - --> $DIR/impl-trait-with-missing-bounds.rs:6:13 |
79 |
| - | |
80 |
| -LL | qux(constraint); |
81 |
| - | --- ^^^^^^^^^^ `<impl Iterator as Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `Debug` |
82 |
| - | | |
83 |
| - | required by a bound introduced by this call |
84 |
| - | |
85 |
| - = help: the trait `Debug` is not implemented for `<impl Iterator as Iterator>::Item` |
86 |
| -note: required by a bound in `qux` |
87 |
| - --> $DIR/impl-trait-with-missing-bounds.rs:50:16 |
88 |
| - | |
89 |
| -LL | fn qux(_: impl std::fmt::Debug) {} |
90 |
| - | ^^^^^^^^^^^^^^^ required by this bound in `qux` |
91 |
| -help: introduce a type parameter with a trait bound instead of using `impl Trait` |
92 |
| - | |
93 |
| -LL | fn foo<I: Iterator>(constraints: I) where <I as Iterator>::Item: Debug { |
94 |
| - | +++++++++++++ ~ ++++++++++++++++++++++++++++++++++ |
95 |
| - |
96 | 96 | error[E0277]: `<impl Iterator as Iterator>::Item` doesn't implement `Debug`
|
97 | 97 | --> $DIR/impl-trait-with-missing-bounds.rs:45:13
|
98 | 98 | |
|
|
0 commit comments