Skip to content

Commit acd68b5

Browse files
committed
Fix broken test on musl
1 parent 0c62ef0 commit acd68b5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/test/ui/check-static-recursion-foreign.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// run-pass
22

3-
#![allow(dead_code)]
43
// Static recursion check shouldn't fail when given a foreign item (#18279)
54

65
// aux-build:check_static_recursion_foreign_helper.rs
@@ -15,12 +14,10 @@ extern crate libc;
1514

1615
use libc::c_int;
1716

18-
#[link(name = "check_static_recursion_foreign_helper")]
1917
extern "C" {
20-
#[allow(dead_code)]
2118
static test_static: c_int;
2219
}
2320

24-
static B: &'static c_int = unsafe { &test_static };
21+
pub static B: &'static c_int = unsafe { &test_static };
2522

2623
pub fn main() {}

0 commit comments

Comments
 (0)