E4001 Reference Errors

undefined-variable

variable not found in scope

When this occurs

Using undeclared variable

Example error message

error[E4001]: identifier not found: 'foo'

How to fix

Declare the variable before using it, or check for typos in the variable name.

Related errors