You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` doesn't implement `std::fmt::Debug`
62
+
--> $DIR/impl-trait-with-missing-bounds.rs:37:13
63
+
|
64
+
LL | qux(constraint);
65
+
| ^^^^^^^^^^ `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
66
+
...
67
+
LL | fn qux(_: impl std::fmt::Debug) {}
68
+
| --- --------------- required by this bound in `qux`
69
+
|
70
+
= help: the trait `std::fmt::Debug` is not implemented for `<impl Iterator + std::fmt::Debug as std::iter::Iterator>::Item`
71
+
help: introduce a type parameter with a trait bound instead of using `impl Trait`
72
+
|
73
+
LL | fn bak<T: Iterator + std::fmt::Debug>(constraints: T) where <T as std::iter::Iterator>::Item: std::fmt::Debug {
0 commit comments