E3001 Types Errors

Types

type mismatch; a value of one type is used where a different type is expected

When this occurs

General type mismatch

Example error message

error[E3001]: type mismatch: expected int, got string

How to fix

Ensure the value type matches the expected type. Use explicit type conversion if needed.

Related errors