Skip to content

should be possible to do [CopyableVariant, ..n] for a non-copyable type #5244

Description

@thestinger

This should be fixable by special casing this (the type isn't copyable, but for this specific case the variant is).

This problem only exists with fixed-size vectors since vec::from_fn(10, |_| None) works with non-copyable types.

@nikomatsakis thinks this should be fixable

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-type-systemArea: Type systemC-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions