Created
August 7, 2013 00:23
-
-
Save peterdn/6170153 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
fn main() { | |
let stack: &mut ~[~int] = &mut ~[]; | |
stack.push(~0); | |
stack.push(~0); | |
stack.push(~0); | |
stack.push(~0); | |
stack.push(~0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fn main() {
let mut stack:~[~int] = ~[];
let stack = &mut stack;
stack.push(~0);
stack.push(~0);
stack.push(~0);
stack.push(~0);
stack.push(~0);
}