Files
rust/tests/ui/static/global-variable-promotion-error-7364.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
315 B
Rust
Raw Normal View History

2025-08-20 14:02:44 -04:00
// https://github.com/rust-lang/rust/issues/7364
2014-02-18 01:38:23 +01:00
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]
2024-12-23 21:49:48 +00:00
//~| ERROR cannot call non-const associated function
2014-02-18 01:38:23 +01:00
fn main() { }