{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/13840","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/13840/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/13840/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/13840/events","html_url":"https://github.com/rust-lang/rust/issues/13840","id":32433033,"number":13840,"title":"Trait constraints should allow anonymous lifetimes for references.","user":{"login":"ciphergoth","id":68100,"avatar_url":"https://avatars.githubusercontent.com/u/68100?v=3","gravatar_id":"","url":"https://api.github.com/users/ciphergoth","html_url":"https://github.com/ciphergoth","followers_url":"https://api.github.com/users/ciphergoth/followers","following_url":"https://api.github.com/users/ciphergoth/following{/other_user}","gists_url":"https://api.github.com/users/ciphergoth/gists{/gist_id}","starred_url":"https://api.github.com/users/ciphergoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ciphergoth/subscriptions","organizations_url":"https://api.github.com/users/ciphergoth/orgs","repos_url":"https://api.github.com/users/ciphergoth/repos","events_url":"https://api.github.com/users/ciphergoth/events{/privacy}","received_events_url":"https://api.github.com/users/ciphergoth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-lang","name":"A-lang","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-lifetimes","name":"A-lifetimes","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-04-29T10:13:03Z","updated_at":"2015-11-05T11:51:17Z","closed_at":"2015-11-05T11:49:29Z","body":"This compiles:\r\n\r\n```rust\r\nfn isum<'a, I: Iterator<&'a int>>(mut it: I) -> int { it.fold(0, |a, b| a + *b) }\r\n```\r\nThis should be the same, but doesn't compile:\r\n```rust\r\nfn isum<I: Iterator<&int>>(mut it: I) -> int { it.fold(0, |a, b| a + *b)}\r\n```\r\nThe compiler complains of a \"missing lifetime specifier\" at the &int."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/154039640","html_url":"https://github.com/rust-lang/rust/issues/13840#issuecomment-154039640","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/13840","id":154039640,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T11:51:17Z","updated_at":"2015-11-05T11:51:17Z","body":"No problem, thanks for bringing it up! Sorry I was confused about the bug/feature split."}}