fix: ICE when array index exceeds usize
This commit is contained in:
parent
e67b7e02da
commit
c4d11083d9
2 changed files with 6 additions and 0 deletions
5
tests/ui/crashes/ice-12253.rs
Normal file
5
tests/ui/crashes/ice-12253.rs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#[allow(overflowing_literals, unconditional_panic, clippy::no_effect)]
|
||||
fn main() {
|
||||
let arr: [i32; 5] = [0; 5];
|
||||
arr[0xfffffe7ffffffffffffffffffffffff];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue