diff options
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/structural-and-final.rs')
-rw-r--r-- | vendor/wasm-bindgen-macro/ui-tests/structural-and-final.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/structural-and-final.rs b/vendor/wasm-bindgen-macro/ui-tests/structural-and-final.rs new file mode 100644 index 000000000..5c5a4ecce --- /dev/null +++ b/vendor/wasm-bindgen-macro/ui-tests/structural-and-final.rs @@ -0,0 +1,11 @@ +use wasm_bindgen::prelude::*; + +#[wasm_bindgen] +extern "C" { + type Foo; + + #[wasm_bindgen(method, structural, final)] + fn bar(this: &Foo); +} + +fn main() {} |