Skip to content

Commit 65e9477

Browse files
phanschflip1995
andauthored
Remove comment
Co-Authored-By: Philipp Krones <[email protected]>
1 parent 633934d commit 65e9477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/out_of_bounds_indexing/empty_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
fn main() {
55
let empty: [i8; 0] = [];
6-
empty[0]; // Ok, let rustc's `const_err` lint handle `usize` indexing on arrays.
6+
empty[0];
77
&empty[1..5];
88
&empty[0..=4];
99
&empty[..=4];

0 commit comments

Comments
 (0)