mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 13:44:13 +00:00
8 lines
213 B
Rust
8 lines
213 B
Rust
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]
|
|
|
|
fn main() { }
|