E2020 Parse Errors

reserved-variable-name

variable name is reserved

When this occurs

Using keyword as variable name

Example error message

error[E2020]: 'temp' is a reserved keyword and cannot be used as a variable name

How to fix

Choose a different name. Reserved words like `if`, `for`, `while`, etc. cannot be used as variable names.

Related errors