Skip to content

Commit 44fb4ad

Browse files
committed
Update trybuild expected errors
1 parent 7236748 commit 44fb4ad

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
error[E0277]: the trait bound `std::result::Result<(), ()>: IntoJsResult` is not satisfied
1+
error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied
22
--> $DIR/async-errors.rs:30:1
33
|
44
30 | #[wasm_bindgen]
5-
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<(), ()>`
5+
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>`
66
|
77
= help: the following implementations were found:
8-
<std::result::Result<(), E> as IntoJsResult>
9-
<std::result::Result<T, E> as IntoJsResult>
8+
<Result<(), E> as IntoJsResult>
9+
<Result<T, E> as IntoJsResult>
1010
= note: required by `into_js_result`
1111
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
1212

13-
error[E0277]: the trait bound `std::result::Result<(), BadType>: IntoJsResult` is not satisfied
13+
error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied
1414
--> $DIR/async-errors.rs:32:1
1515
|
1616
32 | #[wasm_bindgen]
17-
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<(), BadType>`
17+
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>`
1818
|
1919
= help: the following implementations were found:
20-
<std::result::Result<(), E> as IntoJsResult>
21-
<std::result::Result<T, E> as IntoJsResult>
20+
<Result<(), E> as IntoJsResult>
21+
<Result<T, E> as IntoJsResult>
2222
= note: required by `into_js_result`
2323
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
2424

@@ -39,14 +39,14 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not sati
3939
= note: required by `into_js_result`
4040
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
4141

42-
error[E0277]: the trait bound `std::result::Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied
42+
error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied
4343
--> $DIR/async-errors.rs:36:1
4444
|
4545
36 | #[wasm_bindgen]
46-
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `std::result::Result<BadType, wasm_bindgen::JsValue>`
46+
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>`
4747
|
4848
= help: the following implementations were found:
49-
<std::result::Result<(), E> as IntoJsResult>
50-
<std::result::Result<T, E> as IntoJsResult>
49+
<Result<(), E> as IntoJsResult>
50+
<Result<T, E> as IntoJsResult>
5151
= note: required by `into_js_result`
5252
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: FromWasmAbi` is not satisfied
1+
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: FromWasmAbi` is not satisfied
22
--> $DIR/missing-catch.rs:6:9
33
|
44
6 | pub fn foo() -> Result<JsValue, JsValue>;
5-
| ^^^ the trait `FromWasmAbi` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
5+
| ^^^ the trait `FromWasmAbi` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`

crates/macro/ui-tests/start-function.stderr

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,46 @@ error: the start function cannot have generics
1010
10 | pub fn foo3<T>() {}
1111
| ^^^
1212

13-
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
13+
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
1414
--> $DIR/start-function.rs:15:1
1515
|
1616
15 | #[wasm_bindgen(start)]
17-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, ()>`
17+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
1818
|
1919
= help: the following implementations were found:
20-
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
20+
<Result<(), E> as wasm_bindgen::__rt::Start>
2121
= note: required by `start`
2222
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
2323

24-
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
24+
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
2525
--> $DIR/start-function.rs:18:1
2626
|
2727
18 | #[wasm_bindgen(start)]
28-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
28+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
2929
|
3030
= help: the following implementations were found:
31-
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
31+
<Result<(), E> as wasm_bindgen::__rt::Start>
3232
= note: required by `start`
3333
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
3434

35-
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
35+
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
3636
--> $DIR/start-function.rs:27:1
3737
|
3838
27 | #[wasm_bindgen(start)]
39-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, ()>`
39+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
4040
|
4141
= help: the following implementations were found:
42-
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
42+
<Result<(), E> as wasm_bindgen::__rt::Start>
4343
= note: required by `start`
4444
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
4545

46-
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
46+
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
4747
--> $DIR/start-function.rs:30:1
4848
|
4949
30 | #[wasm_bindgen(start)]
50-
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
50+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
5151
|
5252
= help: the following implementations were found:
53-
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
53+
<Result<(), E> as wasm_bindgen::__rt::Start>
5454
= note: required by `start`
5555
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

0 commit comments

Comments
 (0)