Sisu
E0002

Line that starts with a binary -

Error

Built from the repository at commit a8614dc.

A line that starts with - followed by a space is neither a continuation of the line above nor a negation. Sisu rejects it instead of guessing which one you meant.

Why

A line break ends a statement, so a line that starts with - x would begin a new statement that negates x. Written with a space after the -, it looks like the second half of a subtraction. Sisu reports the line and asks you to say which.

Broken

fn main() {
    let total = 10
    - 3
    print(total)
}

What sisu says

error[E0002]: a line cannot start with a binary `-`
 --> E0002.sisu:3:5
  |
3 |     - 3
  |     ^
  |
  = help: to continue the previous line, end it with `-`; to negate, write `-x`

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

Fixed

fn main() {
    let total = 10 -
        3
    print(total)
}