Skip to content

Instantly share code, notes, and snippets.

@amwatson
Created June 3, 2014 20:45
Show Gist options
  • Save amwatson/f811a1f4f6757806893c to your computer and use it in GitHub Desktop.
Save amwatson/f811a1f4f6757806893c to your computer and use it in GitHub Desktop.
placing the body of static_array_access in main() seems to be fine, but the call results in a segfault
fn static_array_access() {
let static_array: u32[50];
static_array[0] = 1;
}
fn main() -> i32 {
static_array_access();
0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment