rust/tests/compile-fail/type-too-large.rs

7 lines
162 B
Rust

// ignore-32bit
fn main() {
let _fat: [u8; (1<<61)+(1<<31)] =
[0; (1u64<<61) as usize +(1u64<<31) as usize]; //~ ERROR post-monomorphization error
}