rust/tests/ui/feature-gates/feature-gate-linkage.rs
2023-01-11 09:32:08 +00:00

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() {}