summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs')
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs b/vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs
new file mode 100644
index 000000000..962e2fad1
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/missing-catch.rs
@@ -0,0 +1,9 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+extern "C" {
+ #[wasm_bindgen]
+ pub fn foo() -> Result<JsValue, JsValue>;
+}
+
+fn main() {}