2022-03-14 10:28:34 +00:00
|
|
|
#![feature(link_cfg)]
|
|
|
|
|
2018-07-16 18:31:14 +00:00
|
|
|
#[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
|
2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {}
|
2018-02-10 22:28:17 +00:00
|
|
|
|
2018-07-16 18:31:14 +00:00
|
|
|
#[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
|
2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {}
|
2018-02-10 22:28:17 +00:00
|
|
|
|
2018-07-16 18:31:14 +00:00
|
|
|
#[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
|
2020-09-01 21:12:52 +00:00
|
|
|
extern "C" {}
|
2018-02-10 22:28:17 +00:00
|
|
|
|
2022-03-14 10:28:34 +00:00
|
|
|
#[link(wasm_import_module = "foo", name = "bar")] //~ ERROR: `wasm_import_module` is incompatible with other arguments
|
|
|
|
extern "C" {}
|
|
|
|
|
|
|
|
#[link(wasm_import_module = "foo", kind = "dylib")] //~ ERROR: `wasm_import_module` is incompatible with other arguments
|
|
|
|
extern "C" {}
|
|
|
|
|
|
|
|
#[link(wasm_import_module = "foo", cfg(FALSE))] //~ ERROR: `wasm_import_module` is incompatible with other arguments
|
|
|
|
extern "C" {}
|
|
|
|
|
2018-02-10 22:28:17 +00:00
|
|
|
fn main() {}
|