E2001 Parse Errors

unexpected-token

unexpected token encountered

When this occurs

Token found where another was expected

Example error message

error[E2001]: unexpected token 'foo'

How to fix

Check your syntax around the reported location. You may have a typo or missing punctuation.

Related errors