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.
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
enum Empty {} struct Unit; trait Run { fn run() -> u8; } impl Run for Empty { fn run() -> u8 { 0 } } impl Run for Unit { fn run() -> u8 { 1 } } fn main() { println!("{} {}", Empty::run(), Unit::run()); }
$ rustc -V rustc 1.3.0-nightly (6d71ce536 2015-07-06) $ rustc test.rs test.rs:1:1: 1:14 warning: enum is never used: `Empty`, #[warn(dead_code)] on by default test.rs:1 enum Empty {} ^~~~~~~~~~~~~ test.rs:2:1: 2:13 warning: struct is never used: `Unit`, #[warn(dead_code)] on by default test.rs:2 struct Unit;
The same doesn't happen for static methods implemented directly on the types.
The text was updated successfully, but these errors were encountered:
Duplicate of #23808.
Sorry, something went wrong.
No branches or pull requests
The same doesn't happen for static methods implemented directly on the types.
The text was updated successfully, but these errors were encountered: