{"action":"closed","issue":{"url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/issues/55","repository_url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder","labels_url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/issues/55/comments","events_url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/issues/55/events","html_url":"https://github.com/colin-kiegel/rust-derive-builder/issues/55","id":216203627,"number":55,"title":"Can not derive on structs which have reference to generic structs","user":{"login":"orhanbalci","id":13239303,"avatar_url":"https://avatars3.githubusercontent.com/u/13239303?v=3","gravatar_id":"","url":"https://api.github.com/users/orhanbalci","html_url":"https://github.com/orhanbalci","followers_url":"https://api.github.com/users/orhanbalci/followers","following_url":"https://api.github.com/users/orhanbalci/following{/other_user}","gists_url":"https://api.github.com/users/orhanbalci/gists{/gist_id}","starred_url":"https://api.github.com/users/orhanbalci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orhanbalci/subscriptions","organizations_url":"https://api.github.com/users/orhanbalci/orgs","repos_url":"https://api.github.com/users/orhanbalci/repos","events_url":"https://api.github.com/users/orhanbalci/events{/privacy}","received_events_url":"https://api.github.com/users/orhanbalci/received_events","type":"User","site_admin":false},"labels":[{"id":420514748,"url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/labels/bug","name":"bug","color":"ee0701","default":true},{"id":428816799,"url":"https://api.github.com/repos/colin-kiegel/rust-derive-builder/labels/P-medium","name":"P-medium","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-22T20:49:30Z","updated_at":"2017-04-10T09:08:03Z","closed_at":"2017-04-10T09:08:03Z","body":"Hello there;\r\nI'm trying to derive builder for the following struct but it gives compiler error : \r\n```\r\n/// Common properties of steering behaviors \r\n#[derive(Builder)]\r\npub struct SteeringBehavior<'a, T: 'a + Real> {\r\n    /// ownew of this behavior upon which the calculations will occur\r\n    pub owner: &'a Steerable<T>,\r\n    /// is this behavior enabled\r\n    pub enabled: bool,\r\n    /// limitations on speed and velocity calculations\r\n    pub limiter: &'a Limiter<T>,\r\n}\r\n```\r\nCompiler error : \r\n```\r\nerror[E0309]: the parameter type `T` may not live long enough\r\n--> src/steering_behavior.rs:6:10\r\n   |\r\n6 | #[derive(Builder)]\r\n   | ^^^^^^^\r\n   |\r\n= help: consider adding an explicit lifetime bound `T: 'a`...\r\nnote: ...so that the reference type `&'a steerable::Steerable<T> + 'a` does not outlive the data it points at\r\n```\r\n"}}
{"actor":{"display_login":"colin-kiegel"}}