E3059 Types Errors

Types

maps cannot be declared const; use 'mut' for maps or a struct for fixed data

When this occurs

This error is triggered when: maps cannot be declared const; use 'mut' for maps or a struct for fixed data

Example error message

error[E3059]: maps cannot be declared const; use 'mut' for maps or a struct for fixed data

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.