Confused on how to use rust modules

前端 未结 0 1858
渐次进展
渐次进展 2021-01-16 18:03

I have three files. main.rs, foo.rs, bar.rs all in the src directory. I want to use whats in foo.rs in bar.rs. So i have mod foo; inside of bar. But i get an error as sh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题