fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error[E0277]: `<P as Process<'_>>::Item` is not an iterator 2 --> $DIR/issue-22872.rs:20:40 3 | 4LL | fn push_process<P>(process: P) where P: Process<'static> { 5 | - help: consider further restricting the associated type: `, <P as Process<'_>>::Item: std::iter::Iterator` 6LL | let _: Box<dyn for<'b> Wrap<'b>> = Box::new(Wrapper(process)); 7 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `<P as Process<'_>>::Item` is not an iterator 8 | 9 = help: the trait `std::iter::Iterator` is not implemented for `<P as Process<'_>>::Item` 10 = note: required because of the requirements on the impl of `for<'b> Wrap<'b>` for `Wrapper<P>` 11 = note: required for the cast to the object type `dyn for<'b> Wrap<'b>` 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0277`.