At one point, long ago, fields of structs were public by default, and could be made private with the priv keyword. Like struct fields, enum variants could also be private. RFC #1 changed this behavior to make fields private by default and removed the ability for variants to be private. It looks like the parser was never properly updated to forbid visibility modifiers on enum variants.