mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
178 B
Rust
13 lines
178 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);
|
||
|
}
|