mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
f7617c1cd4
- Implement link-arg as an attribute - Apply suggestions from review - Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> - Add unstable book entry
7 lines
212 B
Rust
7 lines
212 B
Rust
#![feature(link_arg_attribute)]
|
|
|
|
#[link(kind = "link-arg", name = "arg", modifiers = "+bundle")]
|
|
//~^ ERROR linking modifier `bundle` is only compatible with `static` linking kind
|
|
extern "C" {}
|
|
|
|
pub fn main() {}
|