1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
///// OuterFormat /////
//~ ^^^^^^ attribute `format` can only be used on structs or variants.
//~ enums can have the following attributes: `autogen` or `autogenerate`
///// NoFormat /////
//~ ^^^^^^^^^^^^ at least one variant has to be constructable from sscanf.
//~ To do this, add #[sscanf(format = "...")] to a variant
///// NoVariants /////
//~ ^^^^^^^^^^^^^^ FromScanf: enums must have at least one variant
///// AutogenHasFields /////
//~ ^^^^^^^ FromScanf: autogen only works if the variants have no fields.
//~ Use `#[sscanf(format = "...")]` to specify a format for a variant with fields or `#[sscanf(skip)]` to skip a variant
///// AutogenAllSkip /////
//~ ^^^^^^^^^^^^^^^^^^ at least one variant has to be constructable from sscanf and not skipped.
///// AutogenInvalid /////
//~ ^^ expected string literal
///// AutogenInvalidWord /////
//~ ^^^^^^^^^^^^^^^^^ invalid value for autogen: "bob". valid values are: "lower case", "UPPER CASE", "lowercase", "UPPERCASE", "PascalCase", "camelCase", "snake_case", "UPPER_SNAKE_CASE", "SCREAMING_SNAKE_CASE", "kebab-case", "UPPER-KEBAB-CASE", "SCREAMING-KEBAB-CASE", "CaseSensitive", or "CaseInsensitive"
///// AutogenInvalidCase /////
//~ ^^^^^^^^^^^^^^^^^ invalid value for autogen: "casesensitive". Did you mean "CaseInsensitive"?