From 65e9477b84541c42b3b435cb0dcbffec9aeeb054 Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Tue, 16 Jul 2019 21:28:37 +0200 Subject: [PATCH] Remove comment Co-Authored-By: Philipp Krones --- tests/ui/out_of_bounds_indexing/empty_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];