{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/35377","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/35377/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/35377/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/35377/events","html_url":"https://github.com/rust-lang/rust/issues/35377","id":169665943,"number":35377,"title":"`variant` does not name a *tuple* variant or *tuple* struct for data-less variant","user":{"login":"nagisa","id":679122,"avatar_url":"https://avatars.githubusercontent.com/u/679122?v=3","gravatar_id":"","url":"https://api.github.com/users/nagisa","html_url":"https://github.com/nagisa","followers_url":"https://api.github.com/users/nagisa/followers","following_url":"https://api.github.com/users/nagisa/following{/other_user}","gists_url":"https://api.github.com/users/nagisa/gists{/gist_id}","starred_url":"https://api.github.com/users/nagisa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagisa/subscriptions","organizations_url":"https://api.github.com/users/nagisa/orgs","repos_url":"https://api.github.com/users/nagisa/repos","events_url":"https://api.github.com/users/nagisa/events{/privacy}","received_events_url":"https://api.github.com/users/nagisa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T18:17:09Z","updated_at":"2016-08-05T19:53:31Z","closed_at":null,"body":"```rust\r\nenum A {\r\n    V {}\r\n}\r\n\r\nfn main(){ \r\n    match (A::V {}) {\r\n        A::V => {}\r\n    }\r\n}\r\n```\r\n\r\nresults in\r\n\r\n```\r\nerror: `A::V` does not name a tuple variant or a tuple struct [--explain E0164]\r\n --> <anon>:7:9\r\n7 |>         A::V => {}\r\n  |>         ^^^^\r\n```\r\n\r\ninstead of pointing user out that this variant is struct-like and they forgot to match on it properly."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/237946852","html_url":"https://github.com/rust-lang/rust/issues/35377#issuecomment-237946852","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/35377","id":237946852,"user":{"login":"petrochenkov","id":5751617,"avatar_url":"https://avatars.githubusercontent.com/u/5751617?v=3","gravatar_id":"","url":"https://api.github.com/users/petrochenkov","html_url":"https://github.com/petrochenkov","followers_url":"https://api.github.com/users/petrochenkov/followers","following_url":"https://api.github.com/users/petrochenkov/following{/other_user}","gists_url":"https://api.github.com/users/petrochenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/petrochenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrochenkov/subscriptions","organizations_url":"https://api.github.com/users/petrochenkov/orgs","repos_url":"https://api.github.com/users/petrochenkov/repos","events_url":"https://api.github.com/users/petrochenkov/events{/privacy}","received_events_url":"https://api.github.com/users/petrochenkov/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T19:53:31Z","updated_at":"2016-08-05T19:53:31Z","body":"The \"tuple\" part is fixed on nightly, now the error is\r\n```\r\nerror[E0533]: `A::V` does not name a unit variant, unit struct or a constant\r\n --> <anon>:7:9\r\n  |\r\n7 |         A::V => {}\r\n  |         ^^^^\r\n```"}}
{"actor":{"display_login":"petrochenkov"}}