|
1 | 1 | error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied
|
2 |
| - --> $DIR/async-errors.rs:30:1 |
3 |
| - | |
4 |
| -30 | #[wasm_bindgen] |
5 |
| - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>` |
6 |
| - | |
7 |
| - = help: the following implementations were found: |
8 |
| - <Result<(), E> as IntoJsResult> |
9 |
| - <Result<T, E> as IntoJsResult> |
10 |
| - = note: required by `into_js_result` |
11 |
| - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 2 | + --> $DIR/async-errors.rs:30:1 |
| 3 | + | |
| 4 | +30 | #[wasm_bindgen] |
| 5 | + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>` |
| 6 | + | |
| 7 | + = help: the following implementations were found: |
| 8 | + <Result<(), E> as IntoJsResult> |
| 9 | + <Result<T, E> as IntoJsResult> |
| 10 | +note: required by `into_js_result` |
| 11 | + --> $DIR/lib.rs:1512:9 |
| 12 | + | |
| 13 | +1512 | fn into_js_result(self) -> Result<JsValue, JsValue>; |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 15 | + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
12 | 16 |
|
13 | 17 | error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied
|
14 |
| - --> $DIR/async-errors.rs:32:1 |
15 |
| - | |
16 |
| -32 | #[wasm_bindgen] |
17 |
| - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>` |
18 |
| - | |
19 |
| - = help: the following implementations were found: |
20 |
| - <Result<(), E> as IntoJsResult> |
21 |
| - <Result<T, E> as IntoJsResult> |
22 |
| - = note: required by `into_js_result` |
23 |
| - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 18 | + --> $DIR/async-errors.rs:32:1 |
| 19 | + | |
| 20 | +32 | #[wasm_bindgen] |
| 21 | + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>` |
| 22 | + | |
| 23 | + = help: the following implementations were found: |
| 24 | + <Result<(), E> as IntoJsResult> |
| 25 | + <Result<T, E> as IntoJsResult> |
| 26 | +note: required by `into_js_result` |
| 27 | + --> $DIR/lib.rs:1512:9 |
| 28 | + | |
| 29 | +1512 | fn into_js_result(self) -> Result<JsValue, JsValue>; |
| 30 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 31 | + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
24 | 32 |
|
25 | 33 | error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not satisfied
|
26 |
| - --> $DIR/async-errors.rs:34:1 |
27 |
| - | |
28 |
| -34 | #[wasm_bindgen] |
29 |
| - | ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue` |
30 |
| - | |
31 |
| - = help: the following implementations were found: |
32 |
| - <wasm_bindgen::JsValue as From<&'a String>> |
33 |
| - <wasm_bindgen::JsValue as From<&'a T>> |
34 |
| - <wasm_bindgen::JsValue as From<&'a str>> |
35 |
| - <wasm_bindgen::JsValue as From<MyType>> |
36 |
| - and 72 others |
37 |
| - = note: required because of the requirements on the impl of `Into<wasm_bindgen::JsValue>` for `BadType` |
38 |
| - = note: required because of the requirements on the impl of `IntoJsResult` for `BadType` |
39 |
| - = note: required by `into_js_result` |
40 |
| - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 34 | + --> $DIR/async-errors.rs:34:1 |
| 35 | + | |
| 36 | +34 | #[wasm_bindgen] |
| 37 | + | ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue` |
| 38 | + | |
| 39 | + = help: the following implementations were found: |
| 40 | + <wasm_bindgen::JsValue as From<&'a String>> |
| 41 | + <wasm_bindgen::JsValue as From<&'a T>> |
| 42 | + <wasm_bindgen::JsValue as From<&'a str>> |
| 43 | + <wasm_bindgen::JsValue as From<MyType>> |
| 44 | + and 72 others |
| 45 | + = note: required because of the requirements on the impl of `Into<wasm_bindgen::JsValue>` for `BadType` |
| 46 | + = note: required because of the requirements on the impl of `IntoJsResult` for `BadType` |
| 47 | +note: required by `into_js_result` |
| 48 | + --> $DIR/lib.rs:1512:9 |
| 49 | + | |
| 50 | +1512 | fn into_js_result(self) -> Result<JsValue, JsValue>; |
| 51 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 52 | + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
41 | 53 |
|
42 | 54 | error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied
|
43 |
| - --> $DIR/async-errors.rs:36:1 |
44 |
| - | |
45 |
| -36 | #[wasm_bindgen] |
46 |
| - | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>` |
47 |
| - | |
48 |
| - = help: the following implementations were found: |
49 |
| - <Result<(), E> as IntoJsResult> |
50 |
| - <Result<T, E> as IntoJsResult> |
51 |
| - = note: required by `into_js_result` |
52 |
| - = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 55 | + --> $DIR/async-errors.rs:36:1 |
| 56 | + | |
| 57 | +36 | #[wasm_bindgen] |
| 58 | + | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>` |
| 59 | + | |
| 60 | + = help: the following implementations were found: |
| 61 | + <Result<(), E> as IntoJsResult> |
| 62 | + <Result<T, E> as IntoJsResult> |
| 63 | +note: required by `into_js_result` |
| 64 | + --> $DIR/lib.rs:1512:9 |
| 65 | + | |
| 66 | +1512 | fn into_js_result(self) -> Result<JsValue, JsValue>; |
| 67 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 68 | + = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments