summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs')
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs b/vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs
new file mode 100644
index 000000000..188a1c833
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/invalid-attr.rs
@@ -0,0 +1,15 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(x)]
+pub fn foo() {}
+
+#[wasm_bindgen]
+extern "C" {
+ #[wasm_bindgen(y)]
+ fn bar();
+
+ #[wasm_bindgen { }]
+ fn bar();
+}
+
+fn main() {}