summaryrefslogtreecommitdiffstats
path: root/tests/ui/limits/huge-array-simple-64.rs
blob: c5778c428ae61a1c1924256be3f3a20ab1ab864e (plain)
1
2
3
4
5
6
7
8
9
// build-fail
// ignore-32bit

#![allow(arithmetic_overflow)]

fn main() {
    let _fat: [u8; (1<<61)+(1<<31)] = //~ ERROR too big for the current architecture
        [0; (1u64<<61) as usize +(1u64<<31) as usize];
}