Closed
Description
Currently, the Clone
docs state that Clone
is not implemented for arrays with more than 32 elements:
Lines 73 to 89 in 3eeb5a6
This seems to be untrue, at least for the given example: playground. This must've been the case since at least 1.21.0.
I would fix this myself, but unfortunately, from the PR linked in the changelog, I'm not quite sure in which circumstances Clone
is now auto-implemented. I didn't just want to rip out the example without providing a new one that makes more sense for the current situation.
Edit: to prevent this from happening again, it might be nice to have an additional compile_fail
-style example in the docs to show what doesn't work, so that doctests can catch it.
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: An issue proposing an enhancement or a PR with one.Call for participation: Hard difficulty. Experience needed to fix: A lot.Medium priorityRelevant to the library API team, which will review and decide on the PR/issue.