rust/tests/ui/thread-local/name-collision.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
186 B
Rust
Raw Normal View History

// 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() {}