summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs')
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs b/vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs
new file mode 100644
index 000000000..b5f6b0cfb
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/pub-not-copy.rs
@@ -0,0 +1,8 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+pub struct A {
+ pub field: String,
+}
+
+fn main() {}