Skip to content

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

Closed
@thestinger

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

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