We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fn main() { for i in (0..10).step_by(2).rev() { println!("{}", i); } }
produces the following error:
error: the trait `core::iter::DoubleEndedIterator` is not implemented for the type `core::iter::StepBy<_, core::ops::Range<_>>` [E0277]
Perhaps step_by() could produce a DoubleEndedIterator on ranges that are double-ended, but I don't know if this is possible.
step_by()
The text was updated successfully, but these errors were encountered:
cc @aturon
Sorry, something went wrong.
step_by
#27741 has superceded this issue, so closing in favor of it.
No branches or pull requests
produces the following error:
Perhaps
step_by()
could produce a DoubleEndedIterator on ranges that are double-ended, but I don't know if this is possible.The text was updated successfully, but these errors were encountered: