You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/macro/ui-tests/start-function.stderr
+20
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,23 @@ error: the start function cannot have generics
9
9
|
10
10
10 | pub fn foo3<T>() {}
11
11
| ^^^
12
+
13
+
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
14
+
--> $DIR/start-function.rs:27:1
15
+
|
16
+
27 | #[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
+
23
+
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
24
+
--> $DIR/start-function.rs:30:1
25
+
|
26
+
30 | #[wasm_bindgen(start)]
27
+
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `std::result::Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
28
+
|
29
+
= help: the following implementations were found:
30
+
<std::result::Result<(), E> as wasm_bindgen::__rt::Start>
31
+
= note: required by `wasm_bindgen::__rt::Start::start`
0 commit comments