-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Destructuring slices #15305
New issue
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
Comments
cc @jakub-, I think there's an issue open for this already? Perhaps #15104? |
@alexcrichton Yes. And a PR for it as well #15186. :-) |
This is fixed now. |
Nice work @jakub-! |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 24, 2023
docs: Add example on how to change configuration options in Kate closes rust-lang#15305
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The intention of the second arm of the match below is to match slices with one element only (in this case only the second element in vects should match).
However the compiler complains that the third arm is now unreachable.
The workaround is transforming the second arm in
[a,..rest] if rest==[]
but I was advised on the #rust IRC channel that the[a]
should work and that this is a bug.The text was updated successfully, but these errors were encountered: