mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
12 lines
300 B
Text
12 lines
300 B
Text
|
error: indexing may panic
|
||
|
--> $DIR/test.rs:11:9
|
||
|
|
|
||
|
LL | self.value[0] & 0b1000_0000 != 0
|
||
|
| ^^^^^^^^^^^^^
|
||
|
|
|
||
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
||
|
= note: `-D clippy::indexing-slicing` implied by `-D warnings`
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|