Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
run-make-cargo
/
apple-slow-tls
/
tls_test
/
src
/
main.rs
blob: d48d22bb3d17b54097760466c02e7a52c88dfd65 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
cell
::
RefCell
;
fn
main
()
{
thread_local
!
{
static
S
:
RefCell
<
String
>
=
RefCell
::
default
();
}
S
.
with
(|
x
|
*
x
.
borrow_mut
()
=
"pika pika"
.
to_string
());
S
.
with
(|
x
|
println
!(
"{}"
,
x
.
borrow
()));
}