2014-02-18 01:38:23 +01:00
|
|
|
use std::cell::RefCell;
|
|
|
|
|
2015-02-04 23:04:10 -05:00
|
|
|
// Regression test for issue 7364
|
2022-07-07 04:36:10 +02:00
|
|
|
static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
|
2021-11-26 14:11:45 +00:00
|
|
|
//~^ ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
|
2014-02-18 01:38:23 +01:00
|
|
|
|
|
|
|
fn main() { }
|