blob: 52ec9e42be78282a46f370d2bc2dca078ab536b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![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 `std::cell::RefCell<isize>` cannot be shared between threads safely [E0277]
//~| ERROR static contains unimplemented expression type
fn main() { }
|