{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/13155","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/13155/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/13155/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/13155/events","html_url":"https://github.com/rust-lang/rust/issues/13155","id":30231701,"number":13155,"title":"Trait inheritance isn't considered in trait bounds checking","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-typesystem","name":"A-typesystem","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2014-03-26T17:16:26Z","updated_at":"2015-04-20T16:29:47Z","closed_at":"2015-04-20T16:29:47Z","body":"```rust\r\ntrait A: Send {}\r\n\r\nfn is_send<T: Send>(){}\r\n\r\nfn main() {\r\n    is_send::<~A:>();\r\n}\r\n```\r\n\r\n```\r\n$ rustc foo.rs\r\nfoo.rs:6:5: 6:19 error: instantiating a type parameter with an incompatible type `~A<no-bounds>`, which does not fulfill `Send`                                             \r\nfoo.rs:6     is_send::<~A:>();                                                        \r\n             ^~~~~~~~~~~~~~                                                           \r\nerror: aborting due to previous error                                                 \r\n```\r\n\r\nI would expect this code to compile because any instance of trait `A` must already ascribe to `Send`. This caused some excessive verbosity in #13050.\r\n\r\ncc @nikomatsakis \r\ncc @pnkfelix "},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/94500922","html_url":"https://github.com/rust-lang/rust/issues/13155#issuecomment-94500922","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/13155","id":94500922,"user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T16:29:47Z","updated_at":"2015-04-20T16:29:47Z","body":"This was fixed quite some time ago."}}