{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/51008","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/51008/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/51008/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/51008/events","html_url":"https://github.com/rust-lang/rust/issues/51008","id":325847201,"number":51008,"title":"False positive for \"lifetime must be declared\" error in 2018 preview","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars1.githubusercontent.com/u/64996?v=4","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":[{"id":930400927,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-rust-2018-preview","name":"A-rust-2018-preview","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-23T19:43:25Z","updated_at":"2018-05-23T19:43:25Z","closed_at":null,"author_association":"MEMBER","body":"This code:\r\n\r\n```rust\r\n#![feature(rust_2018_preview)]\r\n\r\ntrait A {\r\n    \r\n}\r\n\r\nimpl<F> A for F where F: FnOnce(&i32) {}\r\n\r\nfn main() {}\r\n```\r\n\r\n[yields](https://play.rust-lang.org/?gist=a9af0fb502bc40ce8cbbfdae8e22e54a&version=nightly&mode=debug):\r\n\r\n```\r\nerror[E0687]: lifetimes used in `fn` or `Fn` syntax must be explicitly declared using `<...>` binders\r\n --> src/main.rs:7:33\r\n  |\r\n7 | impl<F> A for F where F: FnOnce(&i32) {}\r\n  |                                 ^ in-band lifetime definition\r\n\r\nerror: aborting due to previous error\r\n\r\nFor more information about this error, try `rustc --explain E0687`.\r\n```\r\n"}}
{"actor":{"display_login":"alexcrichton"}}