{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/28556","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/28556/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/28556/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/28556/events","html_url":"https://github.com/rust-lang/rust/issues/28556","id":107436846,"number":28556,"title":"Failed to apply `type` on enum","user":{"login":"zonyitoo","id":1067951,"avatar_url":"https://avatars.githubusercontent.com/u/1067951?v=3","gravatar_id":"","url":"https://api.github.com/users/zonyitoo","html_url":"https://github.com/zonyitoo","followers_url":"https://api.github.com/users/zonyitoo/followers","following_url":"https://api.github.com/users/zonyitoo/following{/other_user}","gists_url":"https://api.github.com/users/zonyitoo/gists{/gist_id}","starred_url":"https://api.github.com/users/zonyitoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zonyitoo/subscriptions","organizations_url":"https://api.github.com/users/zonyitoo/orgs","repos_url":"https://api.github.com/users/zonyitoo/repos","events_url":"https://api.github.com/users/zonyitoo/events{/privacy}","received_events_url":"https://api.github.com/users/zonyitoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-21T03:13:19Z","updated_at":"2015-09-22T11:00:31Z","closed_at":null,"body":"```rust\r\nmod test_mod {\r\n    enum A {\r\n        Foo,\r\n    }\r\n}\r\n\r\ntype Alias = test_mod::A;\r\n\r\nlet _v = Alias::Foo; // Compile error\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/142248296","html_url":"https://github.com/rust-lang/rust/issues/28556#issuecomment-142248296","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/28556","id":142248296,"user":{"login":"jonas-schievink","id":1786438,"avatar_url":"https://avatars.githubusercontent.com/u/1786438?v=3","gravatar_id":"","url":"https://api.github.com/users/jonas-schievink","html_url":"https://github.com/jonas-schievink","followers_url":"https://api.github.com/users/jonas-schievink/followers","following_url":"https://api.github.com/users/jonas-schievink/following{/other_user}","gists_url":"https://api.github.com/users/jonas-schievink/gists{/gist_id}","starred_url":"https://api.github.com/users/jonas-schievink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonas-schievink/subscriptions","organizations_url":"https://api.github.com/users/jonas-schievink/orgs","repos_url":"https://api.github.com/users/jonas-schievink/repos","events_url":"https://api.github.com/users/jonas-schievink/events{/privacy}","received_events_url":"https://api.github.com/users/jonas-schievink/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:00:31Z","updated_at":"2015-09-22T11:00:31Z","body":"The type alias itself is correctly rejected if you remove the `let` binding, but with the let binding you get ``no associated item named `Foo` found for type `test_mod::A` in the current scope``. Looks like the order in which these are checked should be reversed (if this is even possible)."}}