]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/wasm-import-module.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / wasm-import-module.stderr
index bf301ce5269a7f7f103e856ab2a972e0de7c9501..14b3055fea8047976a6312542eec894c9c8d2c20 100644 (file)
@@ -1,14 +1,20 @@
-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