Created
August 6, 2014 16:50
-
-
Save gchp/45090c3e52bd07276a81 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 Line { | |
next: Option<&Line>, // error: missing lifetime specifier [E0106] | |
prev: Option<&Line>, // error: missing lifetime specifier [E0106] | |
data: Option<String>, | |
} | |
fn main() { | |
let l = Line { next: None, prev: None, data: "test".to_string() }; | |
println!("{}", l.data); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment