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
This should be possible:
for (key, value) in array![0, 1, 2].into_iter().enumerate() { assert_eq!(key, value); } // Or: let mut iter = array![0, 1, 2].into_iter().enumerate(); while let Option::Some((k, v)) = iter.next() { assert_eq!(k, v); }
But fails with:
error: Unexpected type for tuple pattern. "?125" is not a tuple. for (key, value) in array![0, 1, 2].into_iter().enumerate() { ^^^^^^^^^^^^
However this works fine:
for (key, value) in array![(0, 0), (1, 1), (2, 2)].into_iter() { assert_eq!(key, value); }
The text was updated successfully, but these errors were encountered:
Delay failure on unknown type for tuple style types.
6c2082c
Partially solving issue #7155.
18cfd6c
034a274
Successfully merging a pull request may close this issue.
This should be possible:
But fails with:
However this works fine:
The text was updated successfully, but these errors were encountered: