<p dir="auto">Canonical example <code class="notranslate">[None, ..10]</code> doesn't work for a generic <code class="notranslate">[Option&lt;T&gt;, ..10]</code>. It's possible to write a macro to accomplish this, but it sucks that that's necessary.</p>
<p dir="auto">This should be fixable by special casing this (the type isn't copyable, but for this specific case the variant is).</p>
<p dir="auto">This problem only exists with fixed-size vectors since <code class="notranslate">vec::from_fn(10, |_| None)</code> works with non-copyable types.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a> thinks this should be fixable</p>