mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-25 14:12:13 +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!
16 lines
488 B
Plaintext
16 lines
488 B
Plaintext
error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied
|
|
--> $DIR/pub-not-copy.rs:9:16
|
|
|
|
|
9 | pub field: String,
|
|
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`
|
|
|
|
|
note: required by `__wbg_get_a_field::assert_copy`
|
|
--> $DIR/pub-not-copy.rs:7:1
|
|
|
|
|
7 | #[wasm_bindgen]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|