#main() function return type

1 messages · Page 1 of 1 (latest)

sly ore
#

I’ve tried to find this out online but there’s not much information on this, as main could return void or !void, is it possible for main to return any arbitrary type? (Such as u8)

dire pier
#

main can return u8, void, or an error union with either

#

so: void u8 !void, !u8

#

that's it

eternal ember
#

or noreturn

sly ore
#

Ah, thank you.