blob: e0f9e462d32e873044b3b39c13cd2081e38a7e88 [file] [log] [blame] [edit]
// Regression test for https://github.com/rust-lang/rust/issues/52060
// The compiler shouldn't ICE in this case
static mut A: &'static [u32] = &[1];
static B: [u32; 1] = [0; unsafe { A.len() }];
//~^ ERROR: evaluation of constant value failed
//~| mutable global memory
fn main() {}