-error: must be of the form #[wasm_import_module = "..."]
- --> $DIR/wasm-import-module.rs:13:1
+error: must be of the form #[link(wasm_import_module = "...")]
+ --> $DIR/wasm-import-module.rs:11:22
|
-LL | #[wasm_import_module] //~ ERROR: must be of the form
- | ^^^^^^^^^^^^^^^^^^^^^
+LL | #[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
+ | ^^^^^^^^^^^^^^^^^^
-error: must only be attached to foreign modules
- --> $DIR/wasm-import-module.rs:16:1
+error: must be of the form #[link(wasm_import_module = "...")]
+ --> $DIR/wasm-import-module.rs:14:22
|
-LL | #[wasm_import_module = "foo"] //~ ERROR: must only be attached to
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+LL | #[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
+ | ^^^^^^^^^^^^^^^^^^^^^
-error: aborting due to 2 previous errors
+error: must be of the form #[link(wasm_import_module = "...")]
+ --> $DIR/wasm-import-module.rs:17:22
+ |
+LL | #[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
+ | ^^^^^^^^^^^^^^^^^^^^
+
+error: aborting due to 3 previous errors