Skip to content

Impossible to declare an empty enum with type parameters #32739

@reem

Description

@reem

It is impossible to define a type like enum Void<T> {} because the type parameter is unused. Normally this can be solved by embedding PhantomData, but there is nowhere to do this in an empty enum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-type-systemArea: Type systemC-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions