E3023 Type Errors
const-to-mutable-param
cannot pass immutable variable to mutable parameter
When this occurs
Passing a const variable to a function parameter declared with &
Example error message
error[E3023]:
cannot pass immutable variable 'config' to mutable parameter '&p'
How to fix
Use a `temp` variable instead of `const`, or remove the `&` from the parameter if mutation is not needed.