E3012 Type Errors
return-type-mismatch
return type does not match declaration
When this occurs
Returning wrong type
Example error message
error[E3012]:
return type mismatch: expected int, got string
How to fix
Ensure your return value matches the declared return type.