E5016 Runtime Errors
immutable-parameter
cannot modify read-only parameter
When this occurs
Attempting to modify a parameter not declared with &
Example error message
error[E5016]:
cannot modify read-only parameter 'p'
How to fix
Add `&` before the parameter name to make it mutable: `do foo(&p Person)` instead of `do foo(p Person)`.