Files
rust/tests/ui/issues/issue-7364.rs

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

9 lines
266 B
Rust
Raw Normal View History

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() { }