E3001 Type Errors

type-mismatch

types do not match

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