Skip to content

std::bitflags declaration does not allow trailing comma #16469

Description

@chuckries

From the docs, this works:

bitflags!(
    flags Flags: u32 {
        static FlagA       = 0x00000001,
        static FlagB       = 0x00000010,
        static FlagC       = 0x00000100
    }
)

This would not:

bitflags!(
    flags Flags: u32 {
        static FlagA       = 0x00000001,
        static FlagB       = 0x00000010,
        static FlagC       = 0x00000100,
    }
)

Activity

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

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