You should define Coord inside the same module, or else define it in a separate module and then do using or import to import that module.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to define function input type a struct from a different module? | 4 | 644 | June 9, 2020 | |
| So if I have module A defining a struct, then with "using" import the struct to mo | 2 | 481 | February 6, 2021 | |
| Function whose parameter type is defined in another module | 3 | 337 | May 16, 2023 | |
| Using a module defined in REPL | 2 | 179 | February 23, 2024 | |
| Got a looping of "warning: replacing module myModule" | 7 | 5306 | January 19, 2019 |