mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-14 07:53:24 +00:00
11 lines
317 B
Rust
11 lines
317 B
Rust
![]() |
//@ build-fail
|
||
|
|
||
|
fn main() {
|
||
|
let _n = [64][200];
|
||
|
//~^ ERROR this operation will panic at runtime [unconditional_panic]
|
||
|
|
||
|
// issue #121126, test index value between 0xFFFF_FF00 and u32::MAX
|
||
|
let _n = [64][u32::MAX as usize - 1];
|
||
|
//~^ ERROR this operation will panic at runtime [unconditional_panic]
|
||
|
}
|