We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
There’s no reason for the compiler to fail if --emit≠link is specified and main function does not exist.
--emit≠link
Relevant code appears to be src/librustc/middle/entry.rs.
src/librustc/middle/entry.rs