1 2 3 4 5 6 7 8 9 10 11 12
use enumrs::Tagged; #[derive(Tagged)] pub enum TestEnum { // Tag names should be valid identifiers // in line with rust ident rules, which // means they can't begin with a number. #[tag(1padding)] Variant = 1, } pub fn main() {}