Skip to content

warning: function is never used: main #23158

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

Closed
identicalsnowflake opened this issue Mar 8, 2015 · 3 comments
Closed

warning: function is never used: main #23158

identicalsnowflake opened this issue Mar 8, 2015 · 3 comments

Comments

@identicalsnowflake
Copy link

Not sure if this is somehow Cargo doing this or if it's rustc, but when I do "cargo new --bin myproject" then "cargo test", it tells me "warning: function is never used: main, #[warn(dead_code)] on by default"

@sfackler
Copy link
Member

sfackler commented Mar 8, 2015

I believe this is a duplicate of #12327

@steveklabnik
Copy link
Member

Yes, it is.

@steveklabnik
Copy link
Member

(And I'm still interested in landing such a patch)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants