E3050 Types Errors

Types

array needs a type annotation; declare as [T] (e.g., mut x [int] = {1, 2, 3})

When this occurs

This error is triggered when: array needs a type annotation; declare as [t] (e.g., mut x [int] = {1, 2, 3})

Example error message

error[E3050]: array needs a type annotation; declare as [T] (e.g., mut x [int] = {1, 2, 3})

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.