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

7 lines
175 B
Rust
Raw Normal View History

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