rust/tests/ui/issues/issue-70673.rs

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

13 lines
179 B
Rust
Raw Normal View History

2020-04-03 17:50:06 +00:00
// 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);
}