blob: 68a020546c14e0430be3c568b5028a387f54b5ce [file] [log] [blame] [edit]
error[E0658]: link cfg is unstable
--> $DIR/issue-43925.rs:1:22
|
LL | #[link(name = "foo", cfg("rlib"))]
| ^^^^^^^^^^^
|
= help: add `#![feature(link_cfg)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
error[E0539]: malformed `link` attribute input
--> $DIR/issue-43925.rs:1:1
|
LL | #[link(name = "foo", cfg("rlib"))]
| ^^^^^^^^^^^^^^^^^^^^^^^^^------^^^
| |
| expected a valid identifier here
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
help: try changing it to one of the following valid forms of the attribute
|
LL - #[link(name = "foo", cfg("rlib"))]
LL + #[link(name = "...")]
|
LL - #[link(name = "foo", cfg("rlib"))]
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
LL - #[link(name = "foo", cfg("rlib"))]
LL + #[link(name = "...", kind = "dylib|static|...")]
|
LL - #[link(name = "foo", cfg("rlib"))]
LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
|
= and 1 other candidate
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0539, E0658.
For more information about an error, try `rustc --explain E0539`.