rust/tests/ui/limits/huge-array-simple-64.rs

10 lines
218 B
Rust
Raw Permalink Normal View History

//@ build-fail
//@ ignore-32bit
2019-08-05 04:18:05 +00:00
2020-02-18 21:49:47 +00:00
#![allow(arithmetic_overflow)]
2019-08-05 04:18:05 +00:00
fn main() {
2024-09-20 07:39:10 +00:00
let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the target architecture
2019-08-06 18:23:32 +00:00
[0; (1u64<<61) as usize +(1u64<<31) as usize];
2019-08-05 04:18:05 +00:00
}