]> git.lizzy.rs Git - rust.git/blob - tests/ui/wasm/wasm-import-module.stderr
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui / wasm / wasm-import-module.stderr
1 error: wasm import module must be of the form `wasm_import_module = "string"`
2   --> $DIR/wasm-import-module.rs:3:22
3    |
4 LL | #[link(name = "...", wasm_import_module)]
5    |                      ^^^^^^^^^^^^^^^^^^
6
7 error: wasm import module must be of the form `wasm_import_module = "string"`
8   --> $DIR/wasm-import-module.rs:6:22
9    |
10 LL | #[link(name = "...", wasm_import_module(x))]
11    |                      ^^^^^^^^^^^^^^^^^^^^^
12
13 error: wasm import module must be of the form `wasm_import_module = "string"`
14   --> $DIR/wasm-import-module.rs:9:22
15    |
16 LL | #[link(name = "...", wasm_import_module())]
17    |                      ^^^^^^^^^^^^^^^^^^^^
18
19 error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
20   --> $DIR/wasm-import-module.rs:12:8
21    |
22 LL | #[link(wasm_import_module = "foo", name = "bar")]
23    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
26   --> $DIR/wasm-import-module.rs:15:8
27    |
28 LL | #[link(wasm_import_module = "foo", kind = "dylib")]
29    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: `wasm_import_module` is incompatible with other arguments in `#[link]` attributes
32   --> $DIR/wasm-import-module.rs:18:8
33    |
34 LL | #[link(wasm_import_module = "foo", cfg(FALSE))]
35    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 6 previous errors
38