about summary refs log tree commit diff
path: root/tests/ui/link-native-libs/issue-43926.stderr
blob: 9e3ec21cc9454090c885d104780873ae07dc5e1c (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
error[E0805]: malformed `link` attribute input
  --> $DIR/issue-43926.rs:1:1
   |
LL | #[link(name = "foo", cfg())]
   | ^^^^^^^^^^^^^^^^^^^^^-----^^
   |                      |
   |                      expected a single argument here
   |
   = 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 = "foo", cfg())]
LL + #[link(name = "...")]
   |
LL - #[link(name = "foo", cfg())]
LL + #[link(name = "...", import_name_type = "decorated|noprefix|undecorated")]
   |
LL - #[link(name = "foo", cfg())]
LL + #[link(name = "...", kind = "dylib|static|...")]
   |
LL - #[link(name = "foo", cfg())]
LL + #[link(name = "...", kind = "dylib|static|...", wasm_import_module = "...", import_name_type = "decorated|noprefix|undecorated")]
   |
   = and 1 other candidate

error: aborting due to 1 previous error

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