-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels