mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-01 09:51:06 +00:00
Make sure the error message points to the type in question instead of to the `#[wasm_bindgen]` macro which can be overly confusing!
11 lines
140 B
Rust
11 lines
140 B
Rust
#![crate_type = "rlib"]
|
|
|
|
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
pub struct A {
|
|
pub field: String,
|
|
}
|