mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
10 lines
266 B
Rust
10 lines
266 B
Rust
// compile-flags: -l dylib=foo:bar
|
|
// error-pattern: overriding linking modifiers from command line is not supported
|
|
|
|
#![feature(native_link_modifiers_as_needed)]
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
#[link(name = "foo", kind = "dylib", modifiers = "-as-needed")]
|
|
extern "C" {}
|