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

7 lines
176 B
Rust
Raw Normal View History

2022-07-08 11:08:32 -05:00
//@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
}