rust/tests/ui/issues/issue-18804/auxiliary/lib.rs
2023-01-11 09:32:08 +00:00

11 lines
187 B
Rust

#![crate_type = "rlib"]
#![feature(linkage)]
pub fn foo<T>() -> *const () {
extern "C" {
#[linkage = "extern_weak"]
static FOO: *const ();
}
unsafe { FOO }
}