1 const C1: &'static mut [usize] = &mut [];
2 //~^ ERROR: references in constants may only refer to immutable values
4 static mut S: usize = 3;
5 const C2: &'static mut usize = unsafe { &mut S };
6 //~^ ERROR: constants cannot refer to statics
7 //~| ERROR: references in constants may only refer to immutable values