summaryrefslogtreecommitdiffstats
path: root/tests/ui/thread-local/name-collision.rs
blob: dcff9183ad95a23f52e1143dba78cffd54ef5f4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// check-pass

#[allow(non_camel_case_types)]
struct u8;

std::thread_local! {
    pub static A: i32 = f();
    pub static B: i32 = const { 0 };
}

fn f() -> i32 {
    0
}

fn main() {}