{"issue":{"created_at":"2011-12-07T03:02:17Z","state":"closed","updated_at":"2011-12-07T14:29:06Z","comments":0,"user":{"gravatar_id":"8f9e4181f2951ca8f21ed5c541686367","id":155238,"url":"https://api.github.com/users/nikomatsakis","login":"nikomatsakis","avatar_url":"https://secure.gravatar.com/avatar/8f9e4181f2951ca8f21ed5c541686367?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"The following code gets an error about an unused variable `b`:\r\n\r\n```\r\nuse std;\r\n\r\nfn foo(a: int, b: int) {\r\n    alt a {\r\n      _ when a == b { log_err \"hi\"; }\r\n      _ { log_err \"ho\"; }\r\n    }\r\n}\r\n\r\nfn main() {\r\n    foo(1,1);\r\n    foo(1,2);\r\n}\r\n```","assignee":null,"id":2470703,"number":1265,"labels":[{"name":"bug","color":"ff9900","url":"https://api.github.com/repos/graydon/rust/labels/bug"},{"name":"middle","color":"ededed","url":"https://api.github.com/repos/graydon/rust/labels/middle"},{"name":"typestate","color":"E0BA9B","url":"https://api.github.com/repos/graydon/rust/labels/typestate"},{"name":"unassigned","color":"02e10c","url":"https://api.github.com/repos/graydon/rust/labels/unassigned"}],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Variables used in `when` still considered unused","html_url":"https://github.com/graydon/rust/issues/1265","closed_at":"2011-12-07T14:29:06Z","url":"https://api.github.com/repos/graydon/rust/issues/1265","milestone":null},"action":"closed"}