The parser expected one specific token (the message says which) and found something else. This is the general syntax error; the note usually shows the expected form.
Wrong#
fn add(a: int b: int): int = a + bFixed#
fn add(a: int, b: int): int = a + bCommon causes#
- A missing
,between parameters, arguments, fields or list items. =instead of==in aniforwhilecondition.- Two match arms on one line without a
,between them. ..basenot last in a struct literal.