1error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
2  --> $DIR/async-errors.rs:30:1
3   |
430 | #[wasm_bindgen]
5   | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), ()>`
6   |
7   = help: the following implementations were found:
8             <std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult>
9             <std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult>
10   = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
11   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
12
13error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
14  --> $DIR/async-errors.rs:32:1
15   |
1632 | #[wasm_bindgen]
17   | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), BadType>`
18   |
19   = help: the following implementations were found:
20             <std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult>
21             <std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult>
22   = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
23   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
24
25error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<BadType>` is not satisfied
26  --> $DIR/async-errors.rs:34:1
27   |
2834 | #[wasm_bindgen]
29   | ^^^^^^^^^^^^^^^ the trait `std::convert::From<BadType>` is not implemented for `wasm_bindgen::JsValue`
30   |
31   = help: the following implementations were found:
32             <wasm_bindgen::JsValue as std::convert::From<&'a T>>
33             <wasm_bindgen::JsValue as std::convert::From<&'a std::string::String>>
34             <wasm_bindgen::JsValue as std::convert::From<&'a str>>
35             <wasm_bindgen::JsValue as std::convert::From<MyType>>
36           and 62 others
37   = note: required because of the requirements on the impl of `std::convert::Into<wasm_bindgen::JsValue>` for `BadType`
38   = note: required because of the requirements on the impl of `wasm_bindgen::__rt::IntoJsResult` for `BadType`
39   = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
40   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
41
42error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValue>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
43  --> $DIR/async-errors.rs:36:1
44   |
4536 | #[wasm_bindgen]
46   | ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<BadType, wasm_bindgen::JsValue>`
47   |
48   = help: the following implementations were found:
49             <std::result::Result<(), E> as wasm_bindgen::__rt::IntoJsResult>
50             <std::result::Result<T, E> as wasm_bindgen::__rt::IntoJsResult>
51   = note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
52   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
53