E1008: expected identifier
Generated from rellum-diagnostics/src/db.rs.
Explanation
The parser expected an identifier name, such as a binding name, type parameter name, import segment, field name, or function parameter. The token at this position cannot be used as a name.
Common causes
- using a keyword where a name is required
- leaving a type parameter list empty
- placing punctuation where a binding or field name should appear
Canonical fixes
- provide an identifier
Before:
type Pair[] = { value: Int }
After:
type Pair[T] = { value: T }
- rename values that collide with reserved keywords
Code example
type Pair[] = { value: Int }