E0211: Invalid main signature
| Code | Category | Stability |
|---|---|---|
E0211 | Semantic | Permanent |
Explanation
The root module's main function does not match Rue's fixed executable entry signature.
Likely cause
main declares a runtime or comptime parameter, or returns a type other than i32 or (). The runtime supplies no source-level arguments and accepts only those two return forms.
Examples
Entry point with a parameter
fn main(value: i32) -> i32 {
value
}
Use the executable entry signature
fn main() -> i32 {
0
}