rust-clippy/tests/ui-toml/suppress_lint_in_const/test.stderr

13 lines
369 B
Text
Raw Normal View History

2022-11-22 09:12:50 +00:00
error: indexing may panic
--> $DIR/test.rs:11:9
|
LL | self.value[0] & 0b1000_0000 != 0
2022-11-24 01:43:11 +00:00
| ^^^^^^^^^^^^^
2022-11-22 09:12:50 +00:00
|
2022-11-24 01:43:11 +00:00
= help: consider using `.get(n)` or `.get_mut(n)` instead
= note: the suggestion might not be applicable in constant blocks
2022-11-22 09:12:50 +00:00
= note: `-D clippy::indexing-slicing` implied by `-D warnings`
error: aborting due to previous error