Created
March 10, 2015 15:09
-
-
Save jviereck/d0980d114302fbdeede2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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