2021-05-16 22:22:07 -05:00
|
|
|
//@ run-pass
|
|
|
|
|
|
|
|
#[derive(Clone, Copy)]
|
|
|
|
struct Foo {
|
|
|
|
array: [u64; 10240],
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
const fn new() -> Self {
|
2024-05-29 00:01:33 -05:00
|
|
|
Self { array: [0x1122_3344_5566_7788; 10240] }
|
2021-05-16 22:22:07 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static BAR: [Foo; 10240] = [Foo::new(); 10240];
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let bt = std::backtrace::Backtrace::force_capture();
|
|
|
|
println!("Hello, world! {:?}", bt);
|
|
|
|
println!("{:x}", BAR[0].array[0]);
|
|
|
|
}
|