]> git.lizzy.rs Git - rust.git/blob - src/test/ui/thread-local/name-collision.rs
Auto merge of #95183 - ibraheemdev:arc-count-acquire, r=Amanieu
[rust.git] / src / test / ui / thread-local / name-collision.rs
1 // check-pass
2
3 #[allow(non_camel_case_types)]
4 struct u8;
5
6 std::thread_local! {
7     pub static A: i32 = f();
8     pub static B: i32 = const { 0 };
9 }
10
11 fn f() -> i32 {
12     0
13 }
14
15 fn main() {}