out_of_bounds_indexing doesn't apply to array references #11762
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
Array references with known length are not flagged when indexed out of bounds
Lint Name
out_of_bounds_indexing
Reproducer
The following correctly is flagged by clippy:
But the following is not:
Even though both have known sizes at compile time
Version
The text was updated successfully, but these errors were encountered: