{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/30086","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/30086/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/30086/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/30086/events","html_url":"https://github.com/rust-lang/rust/issues/30086","id":119234882,"number":30086,"title":"\"0 elided lifetimes\" is confusing","user":{"login":"sanxiyn","id":45249,"avatar_url":"https://avatars.githubusercontent.com/u/45249?v=3","gravatar_id":"","url":"https://api.github.com/users/sanxiyn","html_url":"https://github.com/sanxiyn","followers_url":"https://api.github.com/users/sanxiyn/followers","following_url":"https://api.github.com/users/sanxiyn/following{/other_user}","gists_url":"https://api.github.com/users/sanxiyn/gists{/gist_id}","starred_url":"https://api.github.com/users/sanxiyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanxiyn/subscriptions","organizations_url":"https://api.github.com/users/sanxiyn/orgs","repos_url":"https://api.github.com/users/sanxiyn/repos","events_url":"https://api.github.com/users/sanxiyn/events{/privacy}","received_events_url":"https://api.github.com/users/sanxiyn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/E-curated","name":"E-curated","color":"02E10C"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/E-easy","name":"E-easy","color":"02e10c"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/E-mentor","name":"E-mentor","color":"02E10C"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T18:43:33Z","updated_at":"2015-12-05T14:42:50Z","closed_at":"2015-12-05T14:42:50Z","body":"```rust\r\nfn a() -> &i32 {\r\n    panic!();\r\n}\r\nfn b(x: i32) -> &i32 {\r\n    panic!();\r\n}\r\n```\r\n\r\n```\r\ntest.rs:1:11: 1:15 help: this function's return type contains a borrowed value,\r\nbut there is no value for it to be borrowed from\r\ntest.rs:4:17: 4:21 help: this function's return type contains a borrowed value,\r\nbut the signature does not say which one of `x`'s 0 elided lifetimes it is borrowed from\r\n```\r\n\r\nHelp for `a` is reasonable, but help for `b` is not. See also #22760."}}