Created
January 28, 2015 15:23
-
-
Save mfirry/74d54b2251c55e1c6830 to your computer and use it in GitHub Desktop.
Weird error: this gives compilation error: the trait `core::ops::Index<u64>` is not implemented for the type `[i64]` [E0277]
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 get_n(array: &[i64; 4], position: u64) -> i64 { | |
array[position]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment