E0028Program without
Error
Program without main
ErrorEvery 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)
}
Sisu