Error code E0435
A non-constant value was used in a constant expression.
Erroneous code example:
ⓘ
'constant' means 'a compile-time value'.
More details can be found in the Variables and Mutability section of the book.
To fix this error, please replace the value with a constant. Example:
Or: