rust/tests/ui/limits/huge-array-simple-64.rs
2024-09-20 10:02:14 -07:00

10 lines
218 B
Rust

//@ build-fail
//@ ignore-32bit
#![allow(arithmetic_overflow)]
fn main() {
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the target architecture
[0; (1u64<<61) as usize +(1u64<<31) as usize];
}