rust/tests/ui/native-library-link-flags/link-arg-from-rs.rs

9 lines
256 B
Rust
Raw Normal View History

// link-arg is not supposed to be usable in #[link] attributes
// compile-flags:
// error-pattern: error[E0458]: unknown link kind `link-arg`, expected one of: static, dylib, framework, raw-dylib
#[link(kind = "link-arg")]
extern "C" {}
pub fn main() {}