E3062 Types Errors
Types
%s cannot be declared const; use 'mut' (every operation on a %s mutates its state)
When this occurs
This error is triggered when: %s cannot be declared const; use 'mut' (every operation on a %s mutates its state)
Example error message
error[E3062]:
%s cannot be declared const; use 'mut' (every operation on a %s mutates its state)
How to fix
Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.
Related errors
No related errors.