mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +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
8 lines
212 B
Rust
8 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() {}
|