blob: 0608f902fde08111c98a1032b12b911354d8ed5f (
plain)
1
2
3
4
5
6
7
8
|
use std::cell::RefCell;
// Regression test for issue 7364
static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
//~^ ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
//~| ERROR cannot call non-const fn
fn main() { }
|