rust/tests/ui/linkage-attr/linkage4.rs

6 lines
131 B
Rust

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