E1004: expected expression
Generated from rellum-diagnostics/src/db.rs.
Explanation
The parser expected a value expression but found a token that cannot start one. Expressions include literals, identifiers, calls, arrays, tuples, match, blocks, lambdas, constructors, and unary forms.
Common causes
- leaving the right side of a binding empty
- ending a function call argument list with a dangling operator
- putting a statement-only form where a value expression is required
Canonical fixes
- provide an expression at the expected position
Before:
value =
After:
value = 0
- remove the surrounding syntax if no expression is intended
Code example
value =