Created
September 23, 2014 14:27
-
-
Save jagajaga/ec92220b9bb88fcb4616 to your computer and use it in GitHub Desktop.
This file contains 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
fn returnSS() -> String { | |
String::from_str("lala") | |
} | |
fn returnS() -> &'static str { | |
returnSS().as_slice() | |
} | |
fn main() { | |
let result = returnS(); | |
println!("{}", result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment