blob: 4ce9beb68cd3fb0f117618c265509c957d6f9b9d (
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 associated function
fn main() { }
|