Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created April 28, 2013 06:22
Show Gist options
  • Save JohnMurray/5476089 to your computer and use it in GitHub Desktop.
Save JohnMurray/5476089 to your computer and use it in GitHub Desktop.
Question for Rust IRC
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