This error is confusing:
error[E0428]: the name `fetch` is defined multiple times
--> rust-sandbox/src/lib.rs:38:1
|
36 | fn fetch() {}
| ---------- previous definition of the value `fetch` here
37 |
38 | #[event(fetch, respond_with_errors)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `fetch` redefined here
|
= note: `fetch` must be defined only once in the value namespace of this module
= note: this error originates in the attribute macro `event` (in Nightly builds, run with -Z macro-backtrace for more info)
It would be better to name the generated function whatever it was originally (in this case, main).
This error is confusing:
It would be better to name the generated function whatever it was originally (in this case,
main).