-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Use [x; n] syntax for non-Copy types #1366
Comments
The title of this issue implies making this work for all arbitrary non-Copy types. Is However the original issue referenced was just about making enum variants that only contain Copy data behaving as Copy types for the purposes of array literals. The canonical example being |
I think the intention was "make the This would never run user code, but still enable the usecase of, for example, initializing a array of Options to non-copyable data. ( |
Big 👍 here. I've needed this many times. |
Dup of #1109? |
yes, it is. |
Originally at rust-lang/rust#5244
The text was updated successfully, but these errors were encountered: