summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
blob: c1fec077d0e835ffc5adc166402af83187f56beb (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied
  --> ui-tests/async-errors.rs:30:1
   |
30 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>`
   |
   = help: the following implementations were found:
             <Result<(), E> as IntoJsResult>
             <Result<T, E> as IntoJsResult>
note: required by `into_js_result`
  --> $WORKSPACE/src/lib.rs
   |
   |         fn into_js_result(self) -> Result<JsValue, JsValue>;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied
  --> ui-tests/async-errors.rs:32:1
   |
32 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>`
   |
   = help: the following implementations were found:
             <Result<(), E> as IntoJsResult>
             <Result<T, E> as IntoJsResult>
note: required by `into_js_result`
  --> $WORKSPACE/src/lib.rs
   |
   |         fn into_js_result(self) -> Result<JsValue, JsValue>;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not satisfied
  --> ui-tests/async-errors.rs:34:1
   |
34 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue`
   |
   = help: the following implementations were found:
             <wasm_bindgen::JsValue as From<&'a String>>
             <wasm_bindgen::JsValue as From<&'a T>>
             <wasm_bindgen::JsValue as From<&'a str>>
             <wasm_bindgen::JsValue as From<*const T>>
           and $N others
   = note: required because of the requirements on the impl of `Into<wasm_bindgen::JsValue>` for `BadType`
   = note: required because of the requirements on the impl of `IntoJsResult` for `BadType`
note: required by `into_js_result`
  --> $WORKSPACE/src/lib.rs
   |
   |         fn into_js_result(self) -> Result<JsValue, JsValue>;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied
  --> ui-tests/async-errors.rs:36:1
   |
36 | #[wasm_bindgen]
   | ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>`
   |
   = help: the following implementations were found:
             <Result<(), E> as IntoJsResult>
             <Result<T, E> as IntoJsResult>
note: required by `into_js_result`
  --> $WORKSPACE/src/lib.rs
   |
   |         fn into_js_result(self) -> Result<JsValue, JsValue>;
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)