Skip to content

Commit

Permalink
Add regression test for #70673
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Scherer authored and ecstatic-morse committed Apr 3, 2020
1 parent fffbcc8 commit f030635
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/ui/issues/issue-70673.rs
@@ -0,0 +1,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);
}

0 comments on commit f030635

Please sign in to comment.