]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-target-thread-local.rs
Rollup merge of #101800 - chriss0612:feat/const_split_at_mut, r=fee1-dead
[rust.git] / src / test / ui / feature-gates / feature-gate-cfg-target-thread-local.rs
1 // ignore-windows
2 // aux-build:cfg-target-thread-local.rs
3
4 #![feature(thread_local)]
5
6 extern crate cfg_target_thread_local;
7
8 extern "C" {
9     #[cfg_attr(target_thread_local, thread_local)]
10     //~^ `cfg(target_thread_local)` is experimental and subject to change
11     static FOO: u32;
12 }
13
14 fn main() {
15     assert_eq!(FOO, 3);
16 }