summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:41 +0000
commit10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87 (patch)
treebdffd5d80c26cf4a7a518281a204be1ace85b4c1 /vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
parentReleasing progress-linux version 1.70.0+dfsg1-9~progress7.99u1. (diff)
downloadrustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.tar.xz
rustc-10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87.zip
Merging upstream version 1.70.0+dfsg2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr')
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr68
1 files changed, 68 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
new file mode 100644
index 000000000..492492a18
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
@@ -0,0 +1,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<JsError>>
+ and 73 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)