We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c62ef0 commit acd68b5Copy full SHA for acd68b5
src/test/ui/check-static-recursion-foreign.rs
@@ -1,6 +1,5 @@
1
// run-pass
2
3
-#![allow(dead_code)]
4
// Static recursion check shouldn't fail when given a foreign item (#18279)
5
6
// aux-build:check_static_recursion_foreign_helper.rs
@@ -15,12 +14,10 @@ extern crate libc;
15
14
16
use libc::c_int;
17
18
-#[link(name = "check_static_recursion_foreign_helper")]
19
extern "C" {
20
- #[allow(dead_code)]
21
static test_static: c_int;
22
}
23
24
-static B: &'static c_int = unsafe { &test_static };
+pub static B: &'static c_int = unsafe { &test_static };
25
26
pub fn main() {}
0 commit comments