{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/24857","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/24857/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/24857/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/24857/events","html_url":"https://github.com/rust-lang/rust/issues/24857","id":71185995,"number":24857,"title":"Type parameter default not respected with enums","user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/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":6,"created_at":"2015-04-27T05:42:43Z","updated_at":"2015-07-08T22:14:05Z","closed_at":null,"body":"```rust\r\nenum Foo<S = i32> {\r\n    Bar,\r\n    Baz(S)\r\n}\r\n\r\nfn f<S>(_: Foo<S>) {}\r\n\r\nfn main() {\r\n    f(Foo::Bar);\r\n}\r\n```\r\n\r\n```\r\n~ ❯ rustc test.rs\r\ntest.rs:9:5: 9:6 error: unable to infer enough type information about `_`; type annotations required [E0282]\r\ntest.rs:9     f(Foo::Bar);\r\n              ^\r\nerror: aborting due to previous error\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/119746977","html_url":"https://github.com/rust-lang/rust/issues/24857#issuecomment-119746977","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/24857","id":119746977,"user":{"login":"jroesch","id":696509,"avatar_url":"https://avatars.githubusercontent.com/u/696509?v=3","gravatar_id":"","url":"https://api.github.com/users/jroesch","html_url":"https://github.com/jroesch","followers_url":"https://api.github.com/users/jroesch/followers","following_url":"https://api.github.com/users/jroesch/following{/other_user}","gists_url":"https://api.github.com/users/jroesch/gists{/gist_id}","starred_url":"https://api.github.com/users/jroesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroesch/subscriptions","organizations_url":"https://api.github.com/users/jroesch/orgs","repos_url":"https://api.github.com/users/jroesch/repos","events_url":"https://api.github.com/users/jroesch/events{/privacy}","received_events_url":"https://api.github.com/users/jroesch/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T22:14:05Z","updated_at":"2015-07-08T22:14:05Z","body":"I currently have a PR open that implements default type parameter fallback, if anyone is so inclined any test cases would be appreciated. PR: https://github.com/rust-lang/rust/pull/26870"}}