Skip to content

make empty enums non-affine #10278

Closed
@nikomatsakis

Description

@nikomatsakis

Today empty enums are affine. I can't think of a reason for this to be. There is this comment in the source that says: "we somewhat arbitrary declare that empty enums are non-copyable". For all I know I wrote it. Anyway, in my rewrite of type contents, I forgot to reproduce this arbitrary rule, and I'm not inclined to add it back unless someone objects.

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