Created
May 6, 2013 20:37
-
-
Save alexcrichton/5527999 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 MyStruct(int); | |
fn main() { | |
let b = MyStruct(3); | |
let mut MyStruct(a) = b; | |
a += 3; | |
io::println(fmt!("%d\n", a)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment