{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/27037","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/27037/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/27037/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/27037/events","html_url":"https://github.com/rust-lang/rust/issues/27037","id":94943101,"number":27037,"title":"Calling a static trait method on a type doesn't mark it as used.","user":{"login":"michaelsproul","id":4452260,"avatar_url":"https://avatars.githubusercontent.com/u/4452260?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsproul","html_url":"https://github.com/michaelsproul","followers_url":"https://api.github.com/users/michaelsproul/followers","following_url":"https://api.github.com/users/michaelsproul/following{/other_user}","gists_url":"https://api.github.com/users/michaelsproul/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsproul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsproul/subscriptions","organizations_url":"https://api.github.com/users/michaelsproul/orgs","repos_url":"https://api.github.com/users/michaelsproul/repos","events_url":"https://api.github.com/users/michaelsproul/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsproul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T13:16:40Z","updated_at":"2015-07-14T13:41:03Z","closed_at":"2015-07-14T13:41:03Z","body":"```rust\r\nenum Empty {}\r\nstruct Unit;\r\n\r\ntrait Run {\r\n    fn run() -> u8;\r\n}\r\n\r\nimpl Run for Empty {\r\n    fn run() -> u8 { 0 }\r\n}\r\n\r\nimpl Run for Unit {\r\n    fn run() -> u8 { 1 }\r\n}\r\n\r\nfn main() {\r\n    println!(\"{} {}\", Empty::run(), Unit::run());\r\n}\r\n```\r\n\r\n```\r\n$ rustc -V\r\nrustc 1.3.0-nightly (6d71ce536 2015-07-06)\r\n\r\n$ rustc test.rs \r\ntest.rs:1:1: 1:14 warning: enum is never used: `Empty`, #[warn(dead_code)] on by default\r\ntest.rs:1 enum Empty {}\r\n          ^~~~~~~~~~~~~\r\ntest.rs:2:1: 2:13 warning: struct is never used: `Unit`, #[warn(dead_code)] on by default\r\ntest.rs:2 struct Unit;\r\n```\r\n\r\nThe same doesn't happen for static methods implemented directly on the types."}}