Sign in
rust
/
rust-lang
/
rust
/
refs/heads/lcnr/rustc-dev-guide
/
.
/
tests
/
ui
/
threads-sendsync
/
auxiliary
/
thread-local-extern-static.rs
blob: 4d3c4e8accd8888bbfb535927bf773387322b6da [
file
] [
log
] [
blame
]
#![
feature
(
cfg_target_thread_local
,
thread_local
)]
#![
crate_type
=
"lib"
]
#[
cfg
(
target_thread_local
)]
use
std
::
cell
::
Cell
;
#[
no_mangle
]
#[
cfg
(
target_thread_local
)]
#[
thread_local
]
pub
static
FOO
:
Cell
<
u32
>
=
Cell
::
new
(
3
);