rust/src/test/ui/issues/issue-7364.rs
Dylan MacKenzie 51fbd555f0 Bless tests
2020-09-29 19:20:33 -07:00

10 lines
282 B
Rust

#![feature(box_syntax)]
use std::cell::RefCell;
// Regression test for issue 7364
static boxed: Box<RefCell<isize>> = box RefCell::new(0);
//~^ ERROR allocations are not allowed in statics
//~| ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
fn main() { }