1 #![feature(raw_ref_op)]
5 const A: () = { let x = Cell::new(2); &raw const x; }; //~ ERROR interior mutability
7 static B: () = { let x = Cell::new(2); &raw const x; }; //~ ERROR interior mutability
9 static mut C: () = { let x = Cell::new(2); &raw const x; }; //~ ERROR interior mutability
13 let y = &raw const x; //~ ERROR interior mutability