rust/tests/ui/linkage-attr/propagate-generic-issue-18804/auxiliary/lib.rs

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 }
}