]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-7364.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / issues / issue-7364.rs
1 #![feature(box_syntax)]
2
3 use std::cell::RefCell;
4
5 // Regression test for issue 7364
6 static boxed: Box<RefCell<isize>> = box RefCell::new(0);
7 //~^ ERROR allocations are not allowed in statics
8 //~| ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
9
10 fn main() { }