E12001 Map Errors
map-key-not-hashable
map key must be a hashable type
When this occurs
Using non-hashable type (array, map, struct) as map key
Example error message
error[E12001]:
map key must be a hashable type, got ARRAY
How to fix
Map keys must be hashable types: `string`, `int`, `float`, `bool`, or `char`. Arrays and maps cannot be keys.
Related errors
No related errors.