summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-70673.rs
blob: 3561f40127737b960043c5fd2eac34e2557a9329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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);
}