E4009 Reference Errors

no-main-function

program has no entry point

When this occurs

Missing `main()` function

Example error message

error[E4009]: Program must define a main() function

How to fix

Add a `do main() { }` function as the entry point for your program.

Related errors

No related errors.