summary refs log tree commit diff
path: root/src/test/ui/issues/issue-7364.rs
blob: 29a1644673d4ec4ae652328f8be7b121251453bd (plain)
1
2
3
4
5
6
7
8
9
10
#![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() { }