os-rust/tests/ui/feature-gates/feature-gate-link-arg-attribute.rs

9 lines
221 B
Rust

//@ revisions: in_attr in_flag
//@[in_flag] compile-flags: -l dylib:+link-arg=foo
#[cfg(in_attr)]
#[link(kind = "link-arg", name = "foo")]
//[in_attr]~^ ERROR link kind `link-arg` is unstable
extern "C" {}
fn main() {}