Sisu
E0028

Program without main

Error

Built from the repository at commit a8614dc.

Every program starts at a function named main.

Why

Without main there is nothing to run when the program starts.

Broken

fn helper() {
    print(1)
}

What sisu says

error[E0028]: no `main` function
 --> E0028.sisu:1:1
  |
1 | fn helper() {
  | ^

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

Fixed

fn main() {
    print(1)
}