5 const CR: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
6 //~| WARN taking a mutable
7 static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0658
8 //~| ERROR cannot borrow
9 //~| ERROR mutable references are not allowed
11 static CONST_REF: &'static mut i32 = &mut C; //~ ERROR mutable references are not allowed
12 //~| WARN taking a mutable
13 static STATIC_MUT_REF: &'static mut i32 = unsafe { &mut M }; //~ ERROR mutable references are not