Skip to content

Instantly share code, notes, and snippets.

@jviereck
Created March 10, 2015 15:09
Show Gist options
  • Select an option

  • Save jviereck/d0980d114302fbdeede2 to your computer and use it in GitHub Desktop.

Select an option

Save jviereck/d0980d114302fbdeede2 to your computer and use it in GitHub Desktop.
struct Entry<T>{
value: T
}
// error: the parameter type `T` may not live long enough [E0309]
struct Container<'a, T> {
counter: usize,
body: Option<&'a mut Entry<T>>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment