Created
June 3, 2014 20:45
-
-
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
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 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