| 1 |
error: the start function cannot have arguments |
| 2 |
--> ui-tests/start-function.rs:7:9 |
| 3 |
| |
| 4 |
7 | fn foo2(x: u32) {} |
| 5 |
| ^^^^^^ |
| 6 |
|
| 7 |
error: the start function cannot have generics |
| 8 |
--> ui-tests/start-function.rs:10:8 |
| 9 |
| |
| 10 |
10 | fn foo3<T>() {} |
| 11 |
| ^^^ |
| 12 |
|
| 13 |
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied |
| 14 |
--> ui-tests/start-function.rs:16:14 |
| 15 |
| |
| 16 |
16 | fn foo5() -> Result<JsValue, ()> { Err(()) } |
| 17 |
| ^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>` |
| 18 |
| |
| 19 |
= help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>` |
| 20 |
|
| 21 |
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied |
| 22 |
--> ui-tests/start-function.rs:19:14 |
| 23 |
| |
| 24 |
19 | fn foo6() -> Result<JsValue, JsValue> { Ok(JsValue::from(1u32)) } |
| 25 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>` |
| 26 |
| |
| 27 |
= help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>` |
| 28 |
|
| 29 |
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied |
| 30 |
--> ui-tests/start-function.rs:28:26 |
| 31 |
| |
| 32 |
28 | async fn foo_async3() -> Result<JsValue, ()> { Err(()) } |
| 33 |
| ^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>` |
| 34 |
| |
| 35 |
= help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>` |
| 36 |
|
| 37 |
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied |
| 38 |
--> ui-tests/start-function.rs:31:26 |
| 39 |
| |
| 40 |
31 | async fn foo_async4() -> Result<JsValue, JsValue> { Ok(JsValue::from(1u32)) } |
| 41 |
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>` |
| 42 |
| |
| 43 |
= help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>` |