mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
11 lines
224 B
Rust
11 lines
224 B
Rust
#![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);
|