-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting a function as main does not work as expected #27640
Comments
Hmm, I'm not sure how I feel about this. I guess I'm leaning towards not supporting this, as the |
@rust-lang/lang , would this need an RFC? |
Yeah this should get an RFC. Does this have a motivation that |
@nrc Consistency. Using a main method from a library. |
I also think this should go through an RFC. @tbu- , please pursue one for this. |
does not compile due to
The expected behaviour would be that the compiler treats the global symbol
main
which resolves tofoo::bar
as the main function.The text was updated successfully, but these errors were encountered: