mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 11:17:26 +03:00
9 lines
266 B
Rust
9 lines
266 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]
|
|
//~| ERROR cannot call non-const associated function
|
|
|
|
fn main() { }
|