Replies: 1 comment
-
Field names are matched as Rust identifiers, as discussed in the documentation here. Keywords, such as The "raw identifier" ( As an alternative, though, consider using a quoted field name. This is matched as a string literal, rather than an identifier. For example, info!("type" = "foo", "bar"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Version
tracing = "0.1.35"
tracing-subscriber = { version = "0.3.1", default-features = false, features = ["smallvec", "fmt", "tracing-log", "env-filter", "json", "time"] }
Description
Can't use
type
as field name. This code give outputr#type
:If we change
r#type
ontype
code doesn't build:Beta Was this translation helpful? Give feedback.
All reactions