Sisu
E0083

Word reserved for a later version

Error

Built from the repository at commit a8614dc.

A reserved word cannot be a name or start an expression.

Why

import, pub, record, type, weak, test, echo, interface, extern and as are reserved for a later version of Sisu. They are keywords now, so a program that uses one as a name does not break when its feature arrives. The word may sit where a name goes or where a later feature goes (import x), so the compiler cannot know what was meant, and there is no fix. Pick another name.

Broken

fn main() {
    let record = 1
}

What sisu says

error[E0083]: `record` is reserved for a later version of Sisu
 --> E0083.sisu:2:9
  |
2 |     let record = 1
  |         ^^^^^^

sisu: 1 error
sisu: for more on a code, run `sisu explain <code>`: E0083

Fixed

fn main() {
    let found = 1
    print(found)
}

Related

  • E0013: var is not a keyword here.