The following example, found in test/const/rust.rs does not compile for me:
#[tsync]
const SERDE_JSON_2: serde_json::Value = json!({ "a": "b" });
I get this error, among others:
mutable references are not allowed in constants
From my understanding, the constructor for serde_json::Value is not const, so using json! macro to initialize a const macro is not possible. Is there some way to successfully compile the const JSON?
The following example, found in test/const/rust.rs does not compile for me:
I get this error, among others:
From my understanding, the constructor for serde_json::Value is not const, so using json! macro to initialize a const macro is not possible. Is there some way to successfully compile the const JSON?