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
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,28 @@ error: the start function cannot have generics
10
10
10 | pub fn foo3<T>() {}
11
11
| ^^^
12
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: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
+
13
35
error[E0277]: the trait bound `std::result::Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
0 commit comments