2 // normalize-stderr-test "\[&usize; \d+\]" -> "[&usize; N]"
3 // error-pattern: too big for the current architecture
5 // FIXME https://github.com/rust-lang/rust/issues/59774
6 // normalize-stderr-test "thread.*panicked.*Metadata module not compiled.*\n" -> ""
7 // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
9 #![feature(box_syntax)]
11 #[cfg(target_pointer_width = "64")]
14 let a: Box<_> = box [&n; 0xF000000000000000_usize];
15 println!("{}", a[0xFFFFFF_usize]);
18 #[cfg(target_pointer_width = "32")]
21 let a: Box<_> = box [&n; 0xFFFFFFFF_usize];
22 println!("{}", a[0xFFFFFF_usize]);