E5007 Usage Errors
Usage
cannot modify immutable %s '%s'; declare with 'mut' to allow modification
When this occurs
Modifying const array
Example error message
error[E5007]:
cannot modify immutable array (declared as const)
How to fix
Use `var` instead of `const` for the array if you need to modify it.