Created
April 28, 2013 06:22
-
-
Save JohnMurray/5476089 to your computer and use it in GitHub Desktop.
Question for Rust IRC
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 a : ~[int] = vec::with_capacity(20); | |
a[0] = 1; // rust: task failed at 'index out of bounds: the len is 0 but the index is 0' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment