rust/tests/ui/feature-gates/feature-gate-linkage.rs

7 lines
157 B
Rust

extern "C" {
#[linkage = "extern_weak"] static foo: *mut isize;
//~^ ERROR: the `linkage` attribute is experimental and not portable
}
fn main() {}