about summary refs log tree commit diff
path: root/tests/ui/static/global-variable-promotion-error-7364.rs
blob: dba4a484d61154d8eef8cd4b61c0216da4894d92 (plain)
1
2
3
4
5
6
7
8
9
// https://github.com/rust-lang/rust/issues/7364
use std::cell::RefCell;

// Regression test for issue 7364
static boxed: Box<RefCell<isize>> = Box::new(RefCell::new(0));
//~^ ERROR `RefCell<isize>` cannot be shared between threads safely [E0277]
//~| ERROR cannot call non-const associated function

fn main() { }