Fix E0594: Attempted to Set a Constant with a Non-Constant Value
Rust compiler error E0594 occurs when you attempt to assign a non-constant expression to a constant, including any expression involving function calls, even if the function is const.
1 article