{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/18241","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/18241/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/18241/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/18241/events","html_url":"https://github.com/rust-lang/rust/issues/18241","id":46553765,"number":18241,"title":"Trait re-exports fail due to privacy of containing module","user":{"login":"Ryman","id":994978,"avatar_url":"https://avatars.githubusercontent.com/u/994978?v=3","gravatar_id":"","url":"https://api.github.com/users/Ryman","html_url":"https://github.com/Ryman","followers_url":"https://api.github.com/users/Ryman/followers","following_url":"https://api.github.com/users/Ryman/following{/other_user}","gists_url":"https://api.github.com/users/Ryman/gists{/gist_id}","starred_url":"https://api.github.com/users/Ryman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ryman/subscriptions","organizations_url":"https://api.github.com/users/Ryman/orgs","repos_url":"https://api.github.com/users/Ryman/repos","events_url":"https://api.github.com/users/Ryman/events{/privacy}","received_events_url":"https://api.github.com/users/Ryman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-resolve","name":"A-resolve","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-traits","name":"A-traits","color":"d7e102"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-10-22T20:03:19Z","updated_at":"2015-10-28T19:58:20Z","closed_at":null,"body":"This was working previously before `rustc 0.13.0-nightly (3d2cf6063 2014-10-22 00:22:04 +0000)`.\r\n\r\nIf this is an intended change, we should probably give the error where the re-export is defined and not on use of the trait.\r\n\r\n````\r\nuse foo::Bar;\r\n\r\nmod foo {\r\n    pub use self::bar::Bar;\r\n    \r\n    mod bar {\r\n        pub trait Bar {\r\n            fn call(&self) -> bool;\r\n        }\r\n    }\r\n}\r\n\r\nimpl foo::Bar for uint {\r\n    fn call(&self) -> bool {\r\n        true\r\n    }\r\n}\r\n\r\nfn main() {\r\n    println!(\"{}\", 0u.call())\r\n    //^~ ERROR source trait is inaccessible\r\n}\r\n````"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/151972279","html_url":"https://github.com/rust-lang/rust/issues/18241#issuecomment-151972279","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/18241","id":151972279,"user":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T19:58:20Z","updated_at":"2015-10-28T19:58:20Z","body":"@steveklabnik I think this is a bug, actually. @nrc @alexcrichton do you agree?"}}