2022-03-14 13:28:34 +03:00
|
|
|
#![feature(link_cfg)]
|
|
|
|
|
2018-07-16 11:31:14 -07:00
|
|
|
#[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {}
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2018-07-16 11:31:14 -07:00
|
|
|
#[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {}
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2018-07-16 11:31:14 -07:00
|
|
|
#[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {}
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2022-03-14 13:28:34 +03: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 14:28:17 -08:00
|
|
|
fn main() {}
|