Skip to content

Commit f030635

Browse files
Oliver Schererecstatic-morse
Oliver Scherer
authored andcommittedApr 3, 2020
Add regression test for #70673
1 parent fffbcc8 commit f030635

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎src/test/ui/issues/issue-70673.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Regression test for https://github.com/rust-lang/rust/issues/70673.
2+
3+
// run-pass
4+
5+
#![feature(thread_local)]
6+
7+
#[thread_local]
8+
static A: &u8 = &42;
9+
10+
fn main() {
11+
dbg!(*A);
12+
}

0 commit comments

Comments
 (0)
Please sign in to comment.