2022-12-17 07:12:54 -06:00
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:27:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | x[index];
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
= note: `-D clippy::indexing-slicing` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::indexing_slicing)]`
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:42:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | v[0];
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
|
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:43:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | v[10];
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
|
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:44:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | v[1 << 3];
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
|
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:50:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | v[N];
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
|
|
|
|
error: indexing may panic
|
2024-08-18 06:31:47 -05:00
|
|
|
--> tests/ui-toml/suppress_lint_in_const/test.rs:51:5
|
2022-12-17 07:12:54 -06:00
|
|
|
|
|
|
|
|
LL | v[M];
|
|
|
|
| ^^^^
|
|
|
|
|
|
|
|
|
= help: consider using `.get(n)` or `.get_mut(n)` instead
|
|
|
|
|
2024-02-14 06:28:07 -06:00
|
|
|
error: aborting due to 6 previous errors
|
2022-12-17 07:12:54 -06:00
|
|
|
|