Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-7364.rs
blob: 0608f902fde08111c98a1032b12b911354d8ed5f [
file
] [
log
] [
blame
] [
edit
]
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 fn
fn
main
()
{
}