{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/26830","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/26830/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/26830/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/26830/events","html_url":"https://github.com/rust-lang/rust/issues/26830","id":93346252,"number":26830,"title":"Weird inference failure with unary minus","user":{"login":"eefriedman","id":12769964,"avatar_url":"https://avatars.githubusercontent.com/u/12769964?v=3","gravatar_id":"","url":"https://api.github.com/users/eefriedman","html_url":"https://github.com/eefriedman","followers_url":"https://api.github.com/users/eefriedman/followers","following_url":"https://api.github.com/users/eefriedman/following{/other_user}","gists_url":"https://api.github.com/users/eefriedman/gists{/gist_id}","starred_url":"https://api.github.com/users/eefriedman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eefriedman/subscriptions","organizations_url":"https://api.github.com/users/eefriedman/orgs","repos_url":"https://api.github.com/users/eefriedman/repos","events_url":"https://api.github.com/users/eefriedman/events{/privacy}","received_events_url":"https://api.github.com/users/eefriedman/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":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-06T18:38:25Z","updated_at":"2016-03-10T13:50:00Z","closed_at":null,"body":"```rust\r\nfn f<T>() -> T { panic!() }\r\nfn main() {\r\n    let a = f();\r\n    let b = -a;\r\n    let c : &i32 = &a;\r\n}\r\n```\r\n```\r\n<anon>:4:14: 4:15 error: the type of this value must be known in this context\r\n<anon>:4     let b = -a;\r\n                      ^\r\nerror: aborting due to previous error\r\n```\r\nAs far as I can tell, there's enough information here for inference to succeed."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/194848031","html_url":"https://github.com/rust-lang/rust/issues/26830#issuecomment-194848031","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/26830","id":194848031,"user":{"login":"rasendubi","id":1366419,"avatar_url":"https://avatars.githubusercontent.com/u/1366419?v=3","gravatar_id":"","url":"https://api.github.com/users/rasendubi","html_url":"https://github.com/rasendubi","followers_url":"https://api.github.com/users/rasendubi/followers","following_url":"https://api.github.com/users/rasendubi/following{/other_user}","gists_url":"https://api.github.com/users/rasendubi/gists{/gist_id}","starred_url":"https://api.github.com/users/rasendubi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasendubi/subscriptions","organizations_url":"https://api.github.com/users/rasendubi/orgs","repos_url":"https://api.github.com/users/rasendubi/repos","events_url":"https://api.github.com/users/rasendubi/events{/privacy}","received_events_url":"https://api.github.com/users/rasendubi/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T13:50:00Z","updated_at":"2016-03-10T13:50:00Z","body":"Triage: the issue still exists. Tested with rustc 1.9.0-nightly (339a409bf 2016-03-01)."}}