mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +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() {}
|