2022-03-14 13:28:34 +03:00
|
|
|
#![feature(link_cfg)]
|
|
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
#[link(name = "...", wasm_import_module)] //~ ERROR: malformed `link` attribute input
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {}
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
#[link(name = "...", wasm_import_module(x))] //~ ERROR: malformed `link` attribute input
|
2020-09-01 17:12:52 -04:00
|
|
|
extern "C" {}
|
2018-02-10 14:28:17 -08:00
|
|
|
|
2025-07-16 13:46:25 +02:00
|
|
|
#[link(name = "...", wasm_import_module())] //~ ERROR: malformed `link` attribute input
|
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" {}
|
|
|
|
|
|
2025-03-29 17:24:03 +00:00
|
|
|
#[link(wasm_import_module = "foo", cfg(false))] //~ ERROR: `wasm_import_module` is incompatible with other arguments
|
2022-03-14 13:28:34 +03:00
|
|
|
extern "C" {}
|
|
|
|
|
|
2018-02-10 14:28:17 -08:00
|
|
|
fn main() {}
|