rust/tests/ui/rfcs/rfc-1717-dllimport/rename-modifiers.rs

10 lines
260 B
Rust

//@ compile-flags: -l dylib=foo:bar
#![feature(native_link_modifiers_as_needed)]
#![crate_type = "lib"]
#[link(name = "foo", kind = "dylib", modifiers = "-as-needed")]
extern "C" {}
//~^ ERROR overriding linking modifiers from command line is not supported