1
Fork 0
rust/src/test/ui/issues/issue-7364.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
232 B
Rust
Raw Normal View History

#![feature(box_syntax)]
2014-02-18 01:38:23 +01:00
use std::cell::RefCell;
// Regression test for issue 7364
static boxed: Box<RefCell<isize>> = box RefCell::new(0);
//~^ ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
2014-02-18 01:38:23 +01:00
fn main() { }