E3027 Types Errors
Types
cannot pass a constant to a mutable parameter; the function wants to modify this value
When this occurs
Passing a const variable to a function parameter declared with &
Example error message
error[E3027]:
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.