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
Related to #7741 and #7956
Conversion assists between for-loop and for_each are working well for normal iterable types, but it works wrong for range expr.
// before for _ in 0..10 {} // after 0..10.for_each(|_| {}); // syntax error
// before (0..v.len()).for_each(|_| {}); // after for _ in (0..v.len()) {} // warning by unnecessary parentheses
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Related to #7741 and #7956
Conversion assists between for-loop and for_each are working well for normal iterable types, but it works wrong for range expr.
Example
The text was updated successfully, but these errors were encountered: