rust/tests/ui/thread-local/thread-local-static-reference-70673.rs
2025-10-12 00:33:20 -04:00

13 lines
179 B
Rust

// Regression test for https://github.com/rust-lang/rust/issues/70673.
//@ run-pass
#![feature(thread_local)]
#[thread_local]
static A: &u8 = &42;
fn main() {
dbg!(*A);
}