E0102: Parse error
| Code | Category | Stability |
|---|---|---|
E0102 | Parser | Permanent |
Explanation
Rue recognized the surrounding grammar but rejected a more specific syntactic or parser-level rule that is clearer as a targeted message than as an expected-token list.
Likely cause
Common causes include an unknown or misplaced directive, invalid directive arguments, an empty element in a comma-separated list, or trying to continue a block-like statement with a binary operator. Read the diagnostic's specific message before changing nearby punctuation.
Examples
Unknown directive
@important
fn main() {}
Remove the unknown directive
fn main() {}