mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-01 13:34:38 +00:00
10 lines
254 B
Rust
10 lines
254 B
Rust
//@ revisions: in_attr in_flag
|
|
//@[in_flag] compile-flags: -l dylib:+as-needed=foo
|
|
|
|
#[cfg(in_attr)]
|
|
#[link(name = "foo", kind = "dylib", modifiers = "+as-needed")]
|
|
//[in_attr]~^ ERROR: linking modifier `as-needed` is unstable
|
|
extern "C" {}
|
|
|
|
fn main() {}
|