Check if the index of an array is out of bounds. let mut array: [i32; 3] = [0; 3]; array[4]; .