mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-28 07:51:07 +00:00
Rejigger a few spans, work around an odd rustc issue, and hopefully produce higher quality error messages! Closes #1528
8 lines
478 B
Plaintext
8 lines
478 B
Plaintext
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::convert::traits::FromWasmAbi` is not satisfied
|
|
--> $DIR/missing-catch.rs:6:9
|
|
|
|
|
6 | pub fn foo() -> Result<JsValue, JsValue>;
|
|
| ^^^ the trait `wasm_bindgen::convert::traits::FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|