{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/36206","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/36206/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/36206/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/36206/events","html_url":"https://github.com/rust-lang/rust/pull/36206","id":174653911,"number":36206,"title":"Fix bad error message with `::<` in types","user":{"login":"mcarton","id":3751788,"avatar_url":"https://avatars.githubusercontent.com/u/3751788?v=3","gravatar_id":"","url":"https://api.github.com/users/mcarton","html_url":"https://github.com/mcarton","followers_url":"https://api.github.com/users/mcarton/followers","following_url":"https://api.github.com/users/mcarton/following{/other_user}","gists_url":"https://api.github.com/users/mcarton/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarton/subscriptions","organizations_url":"https://api.github.com/users/mcarton/orgs","repos_url":"https://api.github.com/users/mcarton/repos","events_url":"https://api.github.com/users/mcarton/events{/privacy}","received_events_url":"https://api.github.com/users/mcarton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"assignees":[{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2016-09-02T00:09:59Z","updated_at":"2016-09-22T11:54:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/36206","html_url":"https://github.com/rust-lang/rust/pull/36206","diff_url":"https://github.com/rust-lang/rust/pull/36206.diff","patch_url":"https://github.com/rust-lang/rust/pull/36206.patch"},"body":"Fix #36116.\r\n\r\nBefore:\r\n```rust\r\nerror: expected identifier, found `<`\r\n  --> src/test/compile-fail/issue-36116.rs:16:52\r\n   |\r\n16 |     let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>);\r\n   |                                                    ^\r\n\r\nerror: chained comparison operators require parentheses\r\n  --> src/test/compile-fail/issue-36116.rs:16:52\r\n   |\r\n16 |     let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>);\r\n   |                                                    ^^^^^^\r\n   |\r\n   = help: use `::<...>` instead of `<...>` if you meant to specify type arguments\r\n\r\nerror: expected expression, found `)`\r\n  --> src/test/compile-fail/issue-36116.rs:16:57\r\n   |\r\n16 |     let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>);\r\n   |                                                         ^\r\n\r\nerror: expected identifier, found `<`\r\n  --> src/test/compile-fail/issue-36116.rs:20:17\r\n   |\r\n20 |     let g: Foo::<i32> = Foo { _a: 42 };\r\n   |                 ^\r\n\r\nerror: aborting due to 5 previous errors\r\n```\r\n\r\nAfter:\r\n```rust\r\nerror: unexpected token: `::`\r\n  --> src/test/compile-fail/issue-36116.rs:16:50\r\n   |\r\n16 |     let f = Some(Foo { _a: 42 }).map(|a| a as Foo::<i32>);\r\n   |                                                  ^^\r\n   |\r\n   = help: use `<...>` instead of `::<...>` if you meant to specify type arguments\r\n\r\nerror: unexpected token: `::`\r\n  --> src/test/compile-fail/issue-36116.rs:20:15\r\n   |\r\n20 |     let g: Foo::<i32> = Foo { _a: 42 };\r\n   |               ^^\r\n   |\r\n   = help: use `<...>` instead of `::<...>` if you meant to specify type arguments\r\n\r\nerror: aborting due to 2 previous errors\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/248882309","html_url":"https://github.com/rust-lang/rust/pull/36206#issuecomment-248882309","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/36206","id":248882309,"user":{"login":"pnkfelix","id":173127,"avatar_url":"https://avatars.githubusercontent.com/u/173127?v=3","gravatar_id":"","url":"https://api.github.com/users/pnkfelix","html_url":"https://github.com/pnkfelix","followers_url":"https://api.github.com/users/pnkfelix/followers","following_url":"https://api.github.com/users/pnkfelix/following{/other_user}","gists_url":"https://api.github.com/users/pnkfelix/gists{/gist_id}","starred_url":"https://api.github.com/users/pnkfelix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnkfelix/subscriptions","organizations_url":"https://api.github.com/users/pnkfelix/orgs","repos_url":"https://api.github.com/users/pnkfelix/repos","events_url":"https://api.github.com/users/pnkfelix/events{/privacy}","received_events_url":"https://api.github.com/users/pnkfelix/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T11:54:13Z","updated_at":"2016-09-22T11:54:13Z","body":"In other words, r=me once nits are addressed."}}
{"actor":{"display_login":"pnkfelix"}}