{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31769","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31769/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31769/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31769/events","html_url":"https://github.com/rust-lang/rust/issues/31769","id":134732898,"number":31769,"title":"#[inline] is allowed on structs inside fns","user":{"login":"tsion","id":26806,"avatar_url":"https://avatars.githubusercontent.com/u/26806?v=3","gravatar_id":"","url":"https://api.github.com/users/tsion","html_url":"https://github.com/tsion","followers_url":"https://api.github.com/users/tsion/followers","following_url":"https://api.github.com/users/tsion/following{/other_user}","gists_url":"https://api.github.com/users/tsion/gists{/gist_id}","starred_url":"https://api.github.com/users/tsion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsion/subscriptions","organizations_url":"https://api.github.com/users/tsion/orgs","repos_url":"https://api.github.com/users/tsion/repos","events_url":"https://api.github.com/users/tsion/events{/privacy}","received_events_url":"https://api.github.com/users/tsion/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-attributes","name":"A-attributes","color":"d7e102"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/E-easy","name":"E-easy","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-18T23:53:20Z","updated_at":"2016-02-19T12:31:17Z","closed_at":null,"body":"http://is.gd/mRtTeS causes an error, as expected:\r\n\r\n```rust\r\n#[inline] // error: attribute should be applied to function\r\nstruct Foo(usize);\r\n    \r\nfn main() {\r\n}\r\n```\r\n\r\nhttp://is.gd/POCLQo should cause the same error, but is allowed:\r\n\r\n```rust\r\nfn main() {\r\n    #[inline]\r\n    struct Foo(usize);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/186198567","html_url":"https://github.com/rust-lang/rust/issues/31769#issuecomment-186198567","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/31769","id":186198567,"user":{"login":"nxnfufunezn","id":9052031,"avatar_url":"https://avatars.githubusercontent.com/u/9052031?v=3","gravatar_id":"","url":"https://api.github.com/users/nxnfufunezn","html_url":"https://github.com/nxnfufunezn","followers_url":"https://api.github.com/users/nxnfufunezn/followers","following_url":"https://api.github.com/users/nxnfufunezn/following{/other_user}","gists_url":"https://api.github.com/users/nxnfufunezn/gists{/gist_id}","starred_url":"https://api.github.com/users/nxnfufunezn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nxnfufunezn/subscriptions","organizations_url":"https://api.github.com/users/nxnfufunezn/orgs","repos_url":"https://api.github.com/users/nxnfufunezn/repos","events_url":"https://api.github.com/users/nxnfufunezn/events{/privacy}","received_events_url":"https://api.github.com/users/nxnfufunezn/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T12:31:17Z","updated_at":"2016-02-19T12:31:17Z","body":"taking this.."}}