clippy::indexing_slicing
does not report slicing on &str
#13703
Labels
A-documentation
Area: Adding or improving documentation
C-bug
Category: Clippy is not doing the correct thing
Summary
indexing_slicing does not report slicing of &str and it breaks.
Lint Name
clippy::indexing_slicing
Reproducer
I tried this code:
I expected clippy to report a warning, but it does not. The code crashes when I run it:
Version
The text was updated successfully, but these errors were encountered: