E0200: No main function
| Code | Category | Stability |
|---|---|---|
E0200 | Semantic | Permanent |
Explanation
Rue could not find the program entry-point function main in the root module.
Likely cause
The entry function is missing, is misspelled, or is declared only in an imported module. An executable Rue program must define main in its root source module.
Examples
Root module without main
fn start() -> i32 {
0
}
Define the root entry point
fn main() -> i32 {
0
}