Skip to content

Cannot make an array of an enum variant if a different variant may contain a non-copy type #17055

Closed
@Gankra

Description

@Gankra

Canonical example [None, ..10] doesn't work for a generic [Option<T>, ..10]. It's possible to write a macro to accomplish this, but it sucks that that's necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions