2017-11-26 23:19:18 +01:00
|
|
|
#![feature(box_syntax)]
|
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
|
2015-01-08 21:54:35 +11:00
|
|
|
static boxed: Box<RefCell<isize>> = box 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() { }
|