mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-25 05:14:27 +00:00
fix a clippy test
This commit is contained in:
parent
7ba06ec9c5
commit
7298de2568
@ -3,7 +3,7 @@
|
||||
// We also check the out_of_bounds_indexing lint here, because it lints similar things and
|
||||
// we want to avoid false positives.
|
||||
#![warn(clippy::out_of_bounds_indexing)]
|
||||
#![allow(const_err, clippy::no_effect, clippy::unnecessary_operation)]
|
||||
#![allow(const_err, unconditional_panic, clippy::no_effect, clippy::unnecessary_operation)]
|
||||
|
||||
const ARR: [i32; 2] = [1, 2];
|
||||
const REF: &i32 = &ARR[idx()]; // Ok, should not produce stderr.
|
||||
|
Loading…
Reference in New Issue
Block a user