rust/src/test/ui/huge-enum.rs
2018-12-25 21:08:33 -07:00

15 lines
321 B
Rust

// error-pattern: Option
// normalize-stderr-test "<\[u32; \d+\]>" -> "<[u32; N]>"
// FIXME: work properly with higher limits
#[cfg(target_pointer_width = "32")]
fn main() {
let big: Option<[u32; (1<<29)-1]> = None;
}
#[cfg(target_pointer_width = "64")]
fn main() {
let big: Option<[u32; (1<<45)-1]> = None;
}