diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-7364.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-7364.rs b/src/test/ui/issues/issue-7364.rs new file mode 100644 index 000000000..83c52d286 --- /dev/null +++ b/src/test/ui/issues/issue-7364.rs @@ -0,0 +1,9 @@ +#![feature(box_syntax)] + +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] + +fn main() { } |