-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Allow destructuring assignment on fixed-length vectors #5520
Comments
Historically the problem here is that an expression like let [head, ..tail] = foo(); is refutable in the case where the result of However, I wonder if this can be made to work only in the case of functions that return fixed-length vectors. If we know that the return type of |
Updated issue with new title. |
reproduced 2013-06-11, tagged. nominating (weakly) for feature complete. not a backwards compat issue. |
Rolling this into #7784 and closing. |
…nsch rustup rust-lang#71215 There's currently an crash in `ui/new_without_default.rs` that I need to figure out how to avoid. changelog: none
This expression looks refutable to me, but the compiler shows an error:
The text was updated successfully, but these errors were encountered: