summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro/ui-tests/start-function.stderr
blob: 8f459863d2e23b0109c24a81f884a8248addbcdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
error: the start function cannot have arguments
 --> ui-tests/start-function.rs:7:13
  |
7 | pub fn foo2(x: u32) {}
  |             ^^^^^^

error: the start function cannot have generics
  --> ui-tests/start-function.rs:10:12
   |
10 | pub fn foo3<T>() {}
   |            ^^^

error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
    --> ui-tests/start-function.rs:15:1
     |
15   | #[wasm_bindgen(start)]
     | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
     |
     = help: the following implementations were found:
               <Result<(), E> as wasm_bindgen::__rt::Start>
note: required by `start`
    --> $WORKSPACE/src/lib.rs
     |
     |         fn start(self);
     |         ^^^^^^^^^^^^^^^
     = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
    --> ui-tests/start-function.rs:18:1
     |
18   | #[wasm_bindgen(start)]
     | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
     |
     = help: the following implementations were found:
               <Result<(), E> as wasm_bindgen::__rt::Start>
note: required by `start`
    --> $WORKSPACE/src/lib.rs
     |
     |         fn start(self);
     |         ^^^^^^^^^^^^^^^
     = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
    --> ui-tests/start-function.rs:27:1
     |
27   | #[wasm_bindgen(start)]
     | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
     |
     = help: the following implementations were found:
               <Result<(), E> as wasm_bindgen::__rt::Start>
note: required by `start`
    --> $WORKSPACE/src/lib.rs
     |
     |         fn start(self);
     |         ^^^^^^^^^^^^^^^
     = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
    --> ui-tests/start-function.rs:30:1
     |
30   | #[wasm_bindgen(start)]
     | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
     |
     = help: the following implementations were found:
               <Result<(), E> as wasm_bindgen::__rt::Start>
note: required by `start`
    --> $WORKSPACE/src/lib.rs
     |
     |         fn start(self);
     |         ^^^^^^^^^^^^^^^
     = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)