Post #4477290
2026-07-28 20:46 UTC
@penguin42@mastodon.org.uk @cliffle@hachyderm.io Would guess this is because const traits aren't done yet, so can't express a conditionally const Default bound
Replies (1)
-
@cliffle@hachyderm.io 2026-07-28 21:12
@knickish@hachyderm.io @penguin42@mastodon.org.uk close -- a lot of older standard library traits aren't implemented for arbitrary arrays, because the ability to express... impl MyTrait for [T; N] was stabilized ~5 years after Rust 1.0, and sneaking such an impl in for old traits has backwards compatibility concerns. I've paged out the details beyond that. But those back-compat concerns don't affect non-std crates like zerocopy that are willing to ship breaking changes.