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