Skip to content
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

cargo check produces dead_code warnings for bin targets #3420

Closed
crumblingstatue opened this issue Dec 17, 2016 · 1 comment
Closed

cargo check produces dead_code warnings for bin targets #3420

crumblingstatue opened this issue Dec 17, 2016 · 1 comment

Comments

@crumblingstatue
Copy link

For a project generated with cargo new --bin:

warning: function is never used: `main`, #[warn(dead_code)] on by default
 --> src/main.rs:1:1
  |
1 |   fn main() {
  |  _^ starting here...
2 | |     println!("Hello, world!");
3 | | }
  | |_^ ...ending here

@alexcrichton
Copy link
Member

I believe this is a dupe of rust-lang/rust#38273, but thanks for the report!

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

2 participants