mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
9 lines
256 B
Rust
9 lines
256 B
Rust
|
// 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() {}
|