| 1 |
error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied |
| 2 |
--> ui-tests/async-errors.rs:31:24 |
| 3 |
| |
| 4 |
31 | pub async fn bad1() -> Result<(), ()> { loop {} } |
| 5 |
| ^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>` |
| 6 |
| |
| 7 |
= help: the following other types implement trait `IntoJsResult`: |
| 8 |
Result<(), E> |
| 9 |
Result<T, E> |
| 10 |
|
| 11 |
error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied |
| 12 |
--> ui-tests/async-errors.rs:33:24 |
| 13 |
| |
| 14 |
33 | pub async fn bad2() -> Result<(), BadType> { loop {} } |
| 15 |
| ^^^^^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>` |
| 16 |
| |
| 17 |
= help: the following other types implement trait `IntoJsResult`: |
| 18 |
Result<(), E> |
| 19 |
Result<T, E> |
| 20 |
|
| 21 |
error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not satisfied |
| 22 |
--> ui-tests/async-errors.rs:35:24 |
| 23 |
| |
| 24 |
35 | pub async fn bad3() -> BadType { loop {} } |
| 25 |
| ^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue` |
| 26 |
| |
| 27 |
= help: the following other types implement trait `From<T>`: |
| 28 |
<wasm_bindgen::JsValue as From<bool>> |
| 29 |
<wasm_bindgen::JsValue as From<isize>> |
| 30 |
<wasm_bindgen::JsValue as From<i8>> |
| 31 |
<wasm_bindgen::JsValue as From<i16>> |
| 32 |
<wasm_bindgen::JsValue as From<i32>> |
| 33 |
<wasm_bindgen::JsValue as From<i64>> |
| 34 |
<wasm_bindgen::JsValue as From<i128>> |
| 35 |
<wasm_bindgen::JsValue as From<usize>> |
| 36 |
and $N others |
| 37 |
= note: required for `BadType` to implement `Into<wasm_bindgen::JsValue>` |
| 38 |
= note: required for `BadType` to implement `IntoJsResult` |
| 39 |
|
| 40 |
error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied |
| 41 |
--> ui-tests/async-errors.rs:37:24 |
| 42 |
| |
| 43 |
37 | pub async fn bad4() -> Result<BadType, JsValue> { loop {} } |
| 44 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>` |
| 45 |
| |
| 46 |
= help: the following other types implement trait `IntoJsResult`: |
| 47 |
Result<(), E> |
| 48 |
Result<T, E> |