diff --git a/tests/ui/out_of_bounds_indexing/empty_array.rs b/tests/ui/out_of_bounds_indexing/empty_array.rs index b980a1bec745..884e46eb4ee1 100644 --- a/tests/ui/out_of_bounds_indexing/empty_array.rs +++ b/tests/ui/out_of_bounds_indexing/empty_array.rs @@ -3,7 +3,7 @@ fn main() { let empty: [i8; 0] = []; - empty[0]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays. + empty[0]; &empty[1..5]; &empty[0..=4]; &empty[..=4];