error: can only #[wasm_bindgen] public functions
 --> $DIR/non-public-function.rs:6:1
  |
6 | fn foo() {}
  | ^^^^^^^^^^^

error: aborting due to previous error