E5012 Usage Errors

Usage

the throwaway '_' is only meaningful when discarding the result of a function call; the right-hand side has no return value to discard

When this occurs

`a, b = getOne()`

Example error message

error[E5012]: expected 2 values, got 1

How to fix

Ensure the number of variables matches the number of values in multiple assignment.

Related errors