2025-07-16 13:46:25 +02:00
|
|
|
error[E0539]: malformed `link` attribute input
|
|
|
|
|
--> $DIR/wasm-import-module.rs:3:1
|
2018-02-10 14:28:17 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[link(name = "...", wasm_import_module)]
|
2025-07-16 13:46:25 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^------------------^^
|
|
|
|
|
| |
|
|
|
|
|
| expected this to be of the form `wasm_import_module = "..."`
|
|
|
|
|
|
|
|
|
|
|
= 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 = "...", wasm_import_module)]
|
|
|
|
|
LL + #[link(name = "...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module)]
|
|
|
|
|
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module)]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module)]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
= and 1 other candidate
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
error[E0539]: malformed `link` attribute input
|
|
|
|
|
--> $DIR/wasm-import-module.rs:6:1
|
2018-02-10 14:28:17 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[link(name = "...", wasm_import_module(x))]
|
2025-07-16 13:46:25 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^---------------------^^
|
|
|
|
|
| |
|
|
|
|
|
| expected this to be of the form `wasm_import_module = "..."`
|
|
|
|
|
|
|
|
|
|
|
= 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 = "...", wasm_import_module(x))]
|
|
|
|
|
LL + #[link(name = "...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module(x))]
|
|
|
|
|
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module(x))]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module(x))]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
= and 1 other candidate
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
error[E0539]: malformed `link` attribute input
|
|
|
|
|
--> $DIR/wasm-import-module.rs:9:1
|
2018-07-16 11:31:14 -07:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #[link(name = "...", wasm_import_module())]
|
2025-07-16 13:46:25 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^--------------------^^
|
|
|
|
|
| |
|
|
|
|
|
| expected this to be of the form `wasm_import_module = "..."`
|
|
|
|
|
|
|
|
|
|
|
= 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 = "...", wasm_import_module())]
|
|
|
|
|
LL + #[link(name = "...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module())]
|
|
|
|
|
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module())]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...")]
|
|
|
|
|
|
|
|
|
|
|
LL - #[link(name = "...", wasm_import_module())]
|
|
|
|
|
LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
|
|
|
|
|
|
|
|
|
|
|
= and 1 other candidate
|
2018-07-16 11:31:14 -07:00
|
|
|
|
2022-03-14 13:28:34 +03:00
|
|
|
error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
|
|
|
|
|
--> $DIR/wasm-import-module.rs:12:8
|
|
|
|
|
|
|
|
|
|
|
LL | #[link(wasm_import_module = "foo", name = "bar")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
|
|
|
|
|
--> $DIR/wasm-import-module.rs:15:8
|
|
|
|
|
|
|
|
|
|
|
LL | #[link(wasm_import_module = "foo", kind = "dylib")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
|
|
|
|
|
--> $DIR/wasm-import-module.rs:18:8
|
|
|
|
|
|
|
2025-03-29 17:24:03 +00:00
|
|
|
LL | #[link(wasm_import_module = "foo", cfg(false))]
|
2022-03-14 13:28:34 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
For more information about this error, try `rustc --explain E0539`.
|