E1011: expected specific identifier
Generated from rellum-diagnostics/src/db.rs.
Explanation
Some grammar positions require a particular identifier spelling. Currently this is used for event multiplicity syntax, where the parser expects the literal identifier multiplicity before the policy name.
Common causes
- misspelling
multiplicityin an event binding - placing a different label before an event multiplicity policy
- using named-argument syntax where the grammar only accepts
multiplicity:
Canonical fixes
- use the identifier named by the diagnostic
Before:
line = event(stdin_line!(), mode: collect)
After:
line = event(stdin_line!(), multiplicity: collect)
- remove the labelled argument if it is not supported there
Code example
line = event(stdin_line!(), mode: collect)