diff options
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/bad-signatures.rs')
-rw-r--r-- | vendor/wasm-bindgen-macro/ui-tests/bad-signatures.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/bad-signatures.rs b/vendor/wasm-bindgen-macro/ui-tests/bad-signatures.rs new file mode 100644 index 000000000..de2c0e156 --- /dev/null +++ b/vendor/wasm-bindgen-macro/ui-tests/bad-signatures.rs @@ -0,0 +1,13 @@ +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +pub fn foo() -> &u32 {} + +#[wasm_bindgen] +extern "C" { + fn foo(Foo(x): Foo); + + fn foo() -> &u32; +} + +fn main() {} |