Ruta graveolens  ·  notes from a language experiment  ·  cultivated since 2025

E0102: Parse error

CodeCategoryStability
E0102ParserPermanent

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() {}

References