Skip to content

Commit 93f5bba

Browse files
committed
Update async-errors test for nightly
1 parent eeebec0 commit 93f5bba

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

crates/macro/ui-tests/async-errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(unreachable_code)]
12
use wasm_bindgen::prelude::*;
23

34
#[wasm_bindgen]

crates/macro/ui-tests/async-errors.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
2-
--> $DIR/async-errors.rs:29:1
2+
--> $DIR/async-errors.rs:30:1
33
|
4-
29 | #[wasm_bindgen]
4+
30 | #[wasm_bindgen]
55
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), ()>`
66
|
77
= help: the following implementations were found:
@@ -10,9 +10,9 @@ error[E0277]: the trait bound `std::result::Result<(), ()>: wasm_bindgen::__rt::
1010
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
1111

1212
error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
13-
--> $DIR/async-errors.rs:31:1
13+
--> $DIR/async-errors.rs:32:1
1414
|
15-
31 | #[wasm_bindgen]
15+
32 | #[wasm_bindgen]
1616
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<(), BadType>`
1717
|
1818
= help: the following implementations were found:
@@ -21,9 +21,9 @@ error[E0277]: the trait bound `std::result::Result<(), BadType>: wasm_bindgen::_
2121
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
2222

2323
error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<BadType>` is not satisfied
24-
--> $DIR/async-errors.rs:33:1
24+
--> $DIR/async-errors.rs:34:1
2525
|
26-
33 | #[wasm_bindgen]
26+
34 | #[wasm_bindgen]
2727
| ^^^^^^^^^^^^^^^ the trait `std::convert::From<BadType>` is not implemented for `wasm_bindgen::JsValue`
2828
|
2929
= help: the following implementations were found:
@@ -37,9 +37,9 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: std::convert::From<BadType
3737
= note: required by `wasm_bindgen::__rt::IntoJsResult::into_js_result`
3838

3939
error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValue>: wasm_bindgen::__rt::IntoJsResult` is not satisfied
40-
--> $DIR/async-errors.rs:35:1
40+
--> $DIR/async-errors.rs:36:1
4141
|
42-
35 | #[wasm_bindgen]
42+
36 | #[wasm_bindgen]
4343
| ^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::IntoJsResult` is not implemented for `std::result::Result<BadType, wasm_bindgen::JsValue>`
4444
|
4545
= help: the following implementations were found:

0 commit comments

Comments
 (0)