2 #![feature(const_mut_refs)]
4 static mut TEST: i32 = {
5 // We must not promote this, as CTFE needs to be able to mutate it later.
11 // This still works -- it's not done via promotion.
13 static mut TEST2: &'static mut [i32] = &mut [0,1,2];
16 assert_eq!(unsafe { TEST }, 2);