Created
May 14, 2014 16:02
-
-
Save tbelaire/d5d6950cb0798cf6e194 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 mutter( x : ~int ) -> ~int { | |
let mut y = x; | |
*y = 24; | |
return y; | |
} | |
fn main() { | |
let y = box 42; | |
let x = mutter( y ); | |
println!("x:{}", x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment