Skip to content

Commit dd93d83

Browse files
committed
Update UI tests for latest stable
1 parent 3725e71 commit dd93d83

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

crates/macro/ui-tests/pub-not-copy.stderr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not sa
22
--> $DIR/pub-not-copy.rs:5:16
33
|
44
3 | #[wasm_bindgen]
5-
| ---------------
6-
| |
7-
| required by this bound in `__wbg_get_a_field::assert_copy`
5+
| --------------- required by this bound in `__wbg_get_a_field::assert_copy`
86
4 | pub struct A {
97
5 | pub field: String,
108
| ^^^^^^ the trait `std::marker::Copy` is not implemented for `std::string::String`

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,28 @@ 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
14+
--> $DIR/start-function.rs:15:1
15+
|
16+
15 | #[wasm_bindgen(start)]
17+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, ()>`
18+
|
19+
= help: the following implementations were found:
20+
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
21+
= note: required by `wasm_bindgen::__rt::Start::start`
22+
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
23+
24+
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
25+
--> $DIR/start-function.rs:18:1
26+
|
27+
18 | #[wasm_bindgen(start)]
28+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
29+
|
30+
= help: the following implementations were found:
31+
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
32+
= note: required by `wasm_bindgen::__rt::Start::start`
33+
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
34+
1335
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
1436
--> $DIR/start-function.rs:27:1
1537
|

0 commit comments

Comments
 (0)