]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wasm/wasm-import-module.rs
Auto merge of #100845 - timvermeulen:iter_compare, r=scottmcm
[rust.git] / src / test / ui / wasm / wasm-import-module.rs
1 #![feature(link_cfg)]
2
3 #[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
4 extern "C" {}
5
6 #[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
7 extern "C" {}
8
9 #[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
10 extern "C" {}
11
12 #[link(wasm_import_module = "foo", name = "bar")] //~ ERROR: `wasm_import_module` is incompatible with other arguments
13 extern "C" {}
14
15 #[link(wasm_import_module = "foo", kind = "dylib")] //~ ERROR: `wasm_import_module` is incompatible with other arguments
16 extern "C" {}
17
18 #[link(wasm_import_module = "foo", cfg(FALSE))] //~ ERROR: `wasm_import_module` is incompatible with other arguments
19 extern "C" {}
20
21 fn main() {}