E3051 Types Errors
Types
map needs a type annotation; declare as map[K:V] (e.g., mut x map[string:int] = {\"a\": 1})
When this occurs
This error is triggered when: map needs a type annotation; declare as map[k:v] (e.g., mut x map[string:int] = {\"a\": 1})
Example error message
error[E3051]:
map needs a type annotation; declare as map[K:V] (e.g., mut x map[string:int] = {\"a\": 1})
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.