1 #![feature(box_syntax)]
3 use std::cell::RefCell;
5 // Regression test for issue 7364
6 static boxed: Box<RefCell<isize>> = box RefCell::new(0);
7 //~^ ERROR allocations are not allowed in statics
8 //~| ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]