Files
nanoreth/crates/metrics/metrics-derive/tests/compile-fail/metric_attr.stderr
Roman Krasiuk 5bb14ecb7c fix(metrics): metrics derive separator (#625)
* fix(metrics): metrics derive separator

* fix existing metrics

* rm log

* static regex
2022-12-27 03:16:41 -08:00

49 lines
1.3 KiB
Plaintext

error: Either doc comment or `describe = ..` must be set.
--> tests/compile-fail/metric_attr.rs:12:5
|
12 | gauge: Gauge,
| ^^^^^^^^^^^^
error: Either doc comment or `describe = ..` must be set.
--> tests/compile-fail/metric_attr.rs:18:5
|
18 | / #[metric()]
19 | | gauge: Gauge,
| |________________^
error: Unsupported attribute entry.
--> tests/compile-fail/metric_attr.rs:25:14
|
25 | #[metric(random = "value")]
| ^^^^^^^^^^^^^^^^
error: Value **must** be a string literal.
--> tests/compile-fail/metric_attr.rs:32:25
|
32 | #[metric(describe = 123)]
| ^^^
error: Value **must** be a string literal.
--> tests/compile-fail/metric_attr.rs:39:23
|
39 | #[metric(rename = 123)]
| ^^^
error: Duplicate `describe` value provided.
--> tests/compile-fail/metric_attr.rs:46:29
|
46 | #[metric(describe = "", describe = "")]
| ^^^^^^^^^^^^^
error: Duplicate `rename` value provided.
--> tests/compile-fail/metric_attr.rs:53:33
|
53 | #[metric(rename = "_gauge", rename = "_gauge")]
| ^^^^^^^^^^^^^^^^^
error: Unsupported metric type
--> tests/compile-fail/metric_attr.rs:61:12
|
61 | gauge: String,
| ^^^^^^