diff options
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr')
-rw-r--r-- | vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr | 50 |
1 files changed, 17 insertions, 33 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr index c1fec077d..cf833c87d 100644 --- a/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr +++ b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr @@ -4,14 +4,9 @@ error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied 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>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = help: the following other types implement trait `IntoJsResult`: + Result<(), E> + Result<T, E> = 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 @@ -20,14 +15,9 @@ error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfi 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>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = help: the following other types implement trait `IntoJsResult`: + Result<(), E> + Result<T, E> = 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 @@ -36,19 +26,18 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not sati 34 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue` | - = help: the following implementations were found: + = help: the following other types implement trait `From<T>`: <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>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + <wasm_bindgen::JsValue as From<*mut T>> + <wasm_bindgen::JsValue as From<JsError>> + <wasm_bindgen::JsValue as From<MyType>> + <wasm_bindgen::JsValue as From<Option<T>>> + and 72 others + = note: required for `BadType` to implement `Into<wasm_bindgen::JsValue>` + = note: required for `BadType` to implement `IntoJsResult` = 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 @@ -57,12 +46,7 @@ error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsRes 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>; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + = help: the following other types implement trait `IntoJsResult`: + Result<(), E> + Result<T, E> = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) |