mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
16 lines
187 B
Rust
16 lines
187 B
Rust
//@ 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() {}
|