2025-07-16 13:46:25 +02:00
|
|
|
error[E0539]: malformed `link` attribute input
|
2022-03-14 13:28:34 +03:00
|
|
|
--> $DIR/link-attr-validation-early.rs:2:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[link]
|
2025-07-16 13:46:25 +02:00
|
|
|
| ^^^^^^^ expected this to be a list
|
2022-03-14 13:28:34 +03:00
|
|
|
|
|
2025-08-11 04:21:09 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
|
2025-07-16 13:46:25 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
|
|
|
|
|
|
|
|
|
|
LL | #[link(name = "...")]
|
|
|
|
|
| ++++++++++++++
|
|
|
|
|
LL | #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
LL | #[link(name = "...", kind = "dylib|static|...")]
|
|
|
|
|
| +++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
LL | #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
| ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
|
|
|
= and 1 other candidate
|
2022-03-14 13:28:34 +03:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
error[E0539]: malformed `link` attribute input
|
|
|
|
|
--> $DIR/link-attr-validation-early.rs:3:1
|
2022-03-14 13:28:34 +03:00
|
|
|
|
|
|
|
|
|
LL | #[link = "foo"]
|
2025-07-16 13:46:25 +02:00
|
|
|
| ^^^^^^^^^^^^^^^ expected this to be a list
|
2022-03-14 13:28:34 +03:00
|
|
|
|
|
2025-08-11 04:21:09 +00:00
|
|
|
= note: for more information, visit <https://doc.rust-lang.org/reference/items/external-blocks.html#the-link-attribute>
|
2025-07-16 13:46:25 +02:00
|
|
|
help: try changing it to one of the following valid forms of the attribute
|
2025-07-27 22:45:10 +02:00
|
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
LL - #[link = "foo"]
|
|
|
|
|
LL + #[link(name = "...")]
|
2025-07-27 22:45:10 +02:00
|
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
LL - #[link = "foo"]
|
|
|
|
|
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
2025-07-27 22:45:10 +02:00
|
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
LL - #[link = "foo"]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...")]
|
2025-07-27 22:45:10 +02:00
|
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
LL - #[link = "foo"]
|
|
|
|
|
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
|
2025-07-27 22:45:10 +02:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
For more information about this error, try `rustc --explain E0539`.
|