f7617c1cd4
- Implement link-arg as an attribute - Apply suggestions from review - Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> - Add unstable book entry
17 lines
643 B
Plaintext
17 lines
643 B
Plaintext
error[E0458]: unknown link kind `wonderful_unicorn`, expected one of: static, dylib, framework, raw-dylib, link-arg
|
|
--> $DIR/E0458.rs:1:15
|
|
|
|
|
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
|
|
| ^^^^^^^^^^^^^^^^^^^ unknown link kind
|
|
|
|
error[E0459]: `#[link]` attribute requires a `name = "string"` argument
|
|
--> $DIR/E0458.rs:1:1
|
|
|
|
|
LL | #[link(kind = "wonderful_unicorn")] extern "C" {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `name` argument
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0458, E0459.
|
|
For more information about an error, try `rustc --explain E0458`.
|