E3057 Types Errors

Types

type '%s' cannot be used as a map key; only primitive types (int, string, bool, char, byte, float) and enums are hashable

When this occurs

This error is triggered when: type '%s' cannot be used as a map key; only primitive types (int, string, bool, char, byte, float) and enums are hashable

Example error message

error[E3057]: type '%s' cannot be used as a map key; only primitive types (int, string, bool, char, byte, float) and enums are hashable

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.