-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Unable to clone large nested array #25878
Comments
In general, things are only implemented up to size 32. https://github.com/rust-lang/rust/blob/master/src/libcore/array.rs#L162-L167 This is effectively a dup of rust-lang/rfcs#1038 , so I'm giving it a close. Sorry about that, @davidjohnstone . For now, you'll have to use a |
Cheers. I didn't find anything that seemed relevant in my searching, and based on my two days of Rust programming this behaviour seemed rather unintuitive. |
You'll see it with tuples too. even though the RFC thread doesn't say much, this is a relatively highly requested feature, because as you've found out, it makes array usage really awkward. |
@steveklabnik Clone may not be implemented, but isn't the ICE unexpected? |
@shepmaster i assumed that this ICE was the same as the one in the linked issues, maybe not? |
This compiles and runs when
SIZE
is32
, but won't compile whenSIZE
is64
.For this bit of code the error is:
I found this in a larger program which gives the following error:
Happens for both 1.0.0 and Nightly. Windows 8. 64 bit.
The text was updated successfully, but these errors were encountered: