title: How do you set the lifetime of a Rust trait?
body: <p>I can set the lifetime for a Waypoint in the struct Route. In the struct AMoreDifferentRoute I use the trait Coord and get the error</p>
  
  <blockquote>
    <p>explicit lifetime bound required</p>
  </blockquote>
  
  <p>How do you set the lifetime of a trait in this case? </p>
  
  <pre><code>extern crate collections;
  use super::wp;
  use coord::Coord;
  
  
  pub struct Route&lt;'a&gt; {
      waypoints: &amp;'a Vec&lt;wp::Waypoint&gt;
  }
  
  pub struct AMoreDifferentRoute&lt;'a&gt; {
      waypoints: &amp;'a Vec&lt;Coord&gt;
  }
  </code></pre>