]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-cfg-target-thread-local.rs
Auto merge of #105603 - oli-obk:non_repeatable_queries, r=petrochenkov
[rust.git] / tests / 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 }