about summary refs log tree commit diff
path: root/tests/ui/wasm/wasm-import-module.stderr
blob: f5ea449839bb644512e35e77a9a2b42bd90c18be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
error[E0539]: malformed `link` attribute input
  --> $DIR/wasm-import-module.rs:3:1
   |
LL | #[link(name = "...", wasm_import_module)]
   | ^^^^^^^^^^^^^^^^^^^^^------------------^^
   |                      |
   |                      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

error[E0539]: malformed `link` attribute input
  --> $DIR/wasm-import-module.rs:6:1
   |
LL | #[link(name = "...", wasm_import_module(x))]
   | ^^^^^^^^^^^^^^^^^^^^^---------------------^^
   |                      |
   |                      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

error[E0539]: malformed `link` attribute input
  --> $DIR/wasm-import-module.rs:9:1
   |
LL | #[link(name = "...", wasm_import_module())]
   | ^^^^^^^^^^^^^^^^^^^^^--------------------^^
   |                      |
   |                      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

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
   |
LL | #[link(wasm_import_module = "foo", cfg(false))]
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 6 previous errors

For more information about this error, try `rustc --explain E0539`.