Skip to content

Commit c20f8d2

Browse files
committed
Add test of thread_local! breaking on redefined u8
1 parent fbc45b6 commit c20f8d2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
3+
#[allow(non_camel_case_types)]
4+
struct u8;
5+
6+
std::thread_local! {
7+
pub static A: i32 = f();
8+
pub static B: i32 = const { 0 };
9+
}
10+
11+
fn f() -> i32 {
12+
0
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)